[Gambas-user] MoveFirst MoveNext etc
Jeff
jeff at ...2103...
Fri Apr 10 05:46:36 CEST 2009
> But during the long years now I have written programs :-) I found that we most
> often test for errors than success. So using TRUE for errors leads to less
> lines of code.
>
> It is just a matter of habit. And changing habits is a good thing, it keeps
> you young. :-)
>
I need something to keep me young :-)
> You can write your loop this way:
>
> MyResult.MoveFirst()
> WHILE MyResult.Available
> ...
> myResult.MoveNext()
> WEND
>
Aaaahh - the available property. Yes that's what I was looking for.
Obvious now. Thanks.
More information about the User
mailing list