[Gambas-user] Return values for gb.db Results
Benoit Minisini
gambas at ...1...
Wed Mar 17 08:43:16 CET 2004
On Wednesday 17 March 2004 07:49, Rich Falconburg wrote:
> Ok. It says that MoveNext and MovePrevious will return TRUE if there's no
> next record. How does one go about testing for this? I get type mismatch
> when testing the boolean condition as in:
>
> bRC = rResult.MoveNext
>
> It says "got function instead". Am I oversimplifying the test here? I'm
> sure I must be doing something wrong. Any help would be appreciated.
>
> I've not done BASIC stuff in a long time but it's amazing how fast it
> comes back to you. Already got a decent database frontend working but this
> little piece is creating some headaches.
>
> Thanks!
You must add the parenthesis when using a function call inside an expression:
bRC = rResult.MoveNext()
But you can type rResult.MoveNext without the parenthesis if you use it as a
statement. Then the compiler transforms it in a function call automatically.
Regards,
--
Benoit Minisini
mailto:gambas at ...1...
More information about the User
mailing list