Jump to content
Sign in to follow this  
TheBobynator

problem with "FileOpenDialog"

Recommended Posts

TheBobynator

Hi,

I have a problem with fileopendialog.

CODE
...

...

...

...

...

$button = guictrlcreatebutton("Button",....................)

$2 = GUICtrlCreateInput("",20,300,210,21)

While 1

$msg = GUIGetMsg(1)

Select

Case $msg[0] = $button

$1 = FileopenDialog("Choose Map", @ScriptDir & "\data\maps\","(*.map)")

If @error Then ContinueLoop

GUICtrlSetData($2,$1)

EndSelect

WEnd

If you click on the button, in the Input is standing now the filename where you choosen and the path of the file. but I want that is stading only the name of the file.

can someone help me

sry for my very very very bad english

Share this post


Link to post
Share on other sites
BrettF
TheBobynator

thx :mellow:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×