[Gambas-user] config file issue
Benoit Minisini
gambas at ...1...
Wed Apr 13 14:53:22 CEST 2005
On Wednesday 13 April 2005 14:36, Thomas Mathiesen wrote:
> >>Ohh.. ugly bug found... if you add a menu (using the menu editor) to a
> >>form, the backtick doesn't work anymore.
> >>
> >>I am on Gambas 1.0 by the way.
> >>
> >>Is it possible to use another menu?
> >>
> >>/T
> >
> > Can you send a project with some code that shows the problem please :-) ?
>
> Project attached.
> Try to press the button.. nothing happens in the console, right?
> So.. remove the menu item (file) and run the program again.. click the
> button and see that it'll print "ls /" output there.
>
> It's connected to the menu .. in some way :(
>
> /T
I found no bug in the code you sent me :-)
You named your menu "File". So, when you execute the following line to get the
result of the 'ls' command:
TRY result = file.Load(s)
You are actually trying to call the Load method on the menu named "File",
which has overriden the class named "File".
If you give your menu any other name, things work!
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list