[Gambas-user] Return values for gb.db Results
Rich Falconburg
wrichf at ...159...
Wed Mar 17 18:27:04 CET 2004
On Wednesday 17 March 2004 12:43 am, Benoit Minisini wrote:
> 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,
*sigh*
It's always the little things that get you. Told you I'd been away from it
for a while ;) Thanks Benoit and thank you for an excellent programming
environment. Nice work on the IDE.
--
Rich Falconburg
wrichf at ...159...
More information about the User
mailing list