Notifications
Clear all

[Closed] Browse

Hi,

How can I implement a browse dialog?

Thanks.

7 Replies
1 Reply
(@bobo)
Joined: 11 months ago

Posts: 0

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

Hi,

yes, browse file dialog to choose a path.

Igor.

something like getSavePath()

Hi,

FilePath = getOpenFileName types:“Max (*.max)”

[font=Verdana][size=2][color=white]This opens the file dialog, but it shows me all the files in library,

although I asked just for max files.

[/color][/font][/size]
[font=Verdana][size=2][/font][/size]
[font=Verdana][size=2]Thanks.
[/font][/size]

i guess the types property shud be written somewhat like this…
types:“Data(.dat)|.dat|Excel(.csv)|.csv|All|.|”

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 (.)|.

Thanks Bobo,
It works great.