PDA

View Full Version : Browse


igor333
01-09-2005, 10:24 AM
Hi,

How can I implement a browse dialog?

Thanks.

Bobo
01-09-2005, 10:38 AM
Hi,

How can I implement a browse dialog?

Thanks.
Browse what?
Something like getOpenFileName() and getSaveFileName()

igor333
01-09-2005, 10:43 AM
Hi,

yes, browse file dialog to choose a path.


Igor.

ofer_z
01-09-2005, 11:04 AM
something like getSavePath()

igor333
01-09-2005, 12:14 PM
Hi,

FilePath = getOpenFileName types:"Max (*.max)"

This opens the file dialog, but it shows me all the files in library,

although I asked just for max files.



Thanks.

galagast
01-09-2005, 12:47 PM
i guess the types property shud be written somewhat like this...
types:"Data(*.dat)|*.dat|Excel(*.csv)|*.csv|All|*.*|"

Bobo
01-09-2005, 12:47 PM
Hi,

FilePath = getOpenFileName types:"Max (*.max)"

This opens the file dialog, but it shows me all the files in library,

although I asked just for max files.

FilePath = getOpenFileName types:"Max (*.max)|*.max"

The first part specifies the text to be displayed in the list. The second after the vertical line specifies the filter pattern. You can add as many pairs like this as you want:

FilePath = getOpenFileName types:"Max (*.max)|*.max|All Files (*.*)|*.*"

igor333
01-09-2005, 01:02 PM
Thanks Bobo,
It works great.

CGTalk Moderation
01-20-2006, 10:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.