[Gambas-user] FileChooser1

Charlie Reinl Karl.Reinl at ...9...
Sat Nov 28 15:04:09 CET 2009


Am Samstag, den 28.11.2009, 08:11 -0500 schrieb John:
> Hi Benoit
>           Please find attached the following file Vbtogambas.tar.gz
> The version of Gambas 2.13
> The version of operating system Ubuntu 9.10
> Hope this is enough information for you.
> 
> On Sat, 2009-11-28 at 10:09 +0100, Benoît Minisini wrote:
> > > 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.
> > 

Salut John,

me again. Just 2 hints.

1.) it is better do provide a full project. What means, making a "source
archive" from the menu or Ctrl+Alt+A, so it is easier and faster for
testing, and so it will be tested quicker.

To test your file, I had to create a new project, add your files as form
into that project and sign it as starter.

2.) do you know the Debug Windows?
they raise when you dblClick on an Object/Element with more then 1
property or item. (if there is only one the value is shown)
Inside that Window you have the same functionality.
Look at the 2 screen attached.

Wish you a nice weekend.
Charlie 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-FileChooser1 (FileChooser).png
Type: image/png
Size: 29517 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20091128/d5b42b4b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bildschirmfoto-FileChooser1.SelectedPaths	(String[]).png
Type: image/png
Size: 12183 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20091128/d5b42b4b/attachment-0001.png>


More information about the User mailing list