[Gambas-user] FileChooser1

Benoît Minisini gambas at ...1...
Sat Nov 28 10:09:36 CET 2009


> Hi All
>        I have on the main form a Wizard1 control and in the first
> step of that Wizard1 control I have a Filechooser1 control.
> Here is the code
> 
> ' Gambas class file
> PUBLIC Spath AS String
> PUBLIC SUB _new()
> 
> END
> 
> PUBLIC SUB Form_Open()
> 
> END
> PUBLIC SUB Wizard1_Cancel()
> 
>   ME.Close
> 
> END
> PUBLIC SUB Wizard1_Change()
>   SELECT CASE Wizard1.Index
>          CASE 1
>            Spath = FileChooser1.SelectedPath
>            DEBUG Spath
>   END SELECT
> END
> Here is what I do when I run the program.
> 1) choose a file using the Filechooser1 control.
> 2) click on the next button on the Wizard1 control.
> 
> When I do the above the console window shows the following.
> VbtogambasFrm.Wizard1_Change.19:
> 
> The variable Spath contains a Null.
> What am I doing wrong?
> 

Can you provide a full project that shows your problem?

Thanks in advance.

-- 
Benoît Minisini




More information about the User mailing list