[Gambas-user] Return values for gb.db Results

Rich Falconburg wrichf at ...159...
Thu Mar 18 02:29:16 CET 2004


On Wednesday 17 March 2004 12:20 pm, Rob wrote:
> On Wednesday 17 March 2004 12:34, Rich Falconburg wrote:
> >   Thanks.  As I said, I'm a bit rusty.  Should have caught
> > that one.  BTW, shouldn't this work with WHILE as in
> >   WHILE rResult.MoveNext()
>
> It works the opposite as you would expect, returning False when
> it succeeds and True when it reaches the end of file.
>
> WHILE NOT rResult.MoveNext()
>
> I learned this idiom myself recently.
>
> Rob
>
  I tried it both ways.  With the NOT (I think) it would not move at all.  Ah 
well.  The IF test works just fine.

 FWIW I set up a boolean variable and printed it's value to see what was 
actually coming back.  I got True until it hit the last record and, as 
expected, it switched to False.  I think the docs may be wrong.

-- 
Rich Falconburg
wrichf at ...159...





More information about the User mailing list