> 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.


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to