[Gambas-user] Help inaccuracy or bug?
Robert Rowe
robert.c.rowe at ...626...
Wed Apr 2 03:28:33 CEST 2008
You are correct. I guess I'm too used to VB.Net. It adds the braces
automatically.
I guess the braces instruct the interpreter to return a value from
methods while it returns a reference to the method if braces aren't
used. there's always so much to learn when you start using a new language.
It's starting to affect me the other way too. I've been writing in
gambas at home so much that I'm starting to try to write gambas code in
VB.Net at work. That doesn't work very well. :)
Robert Rowe
Benoit Minisini wrote:
> On mercredi 2 avril 2008, Robert Rowe wrote:
>
>> I'm using gambas3, revision 1277. I'm working with a listview control.
>> The help states that the MoveCurrent, MoveNext, etc return TRUE if there
>> is no current item. When I use these methods in an if statement I get an
>> error stating that it wanted a boolean but got a function. I'm working
>> around this by checking the Available property after I use these methods
>> but I think that either the help is wrong, there is a bug or I'm not
>> understanding something. I'd be happy to update the help if it is in error.
>>
>> Robert Rowe
>>
>>
>
> Didn't you forget the braces after the method name?
>
>
More information about the User
mailing list