[Gambas-user] MoveFirst MoveNext etc
Jeff
jeff at ...2103...
Thu Apr 9 17:39:03 CEST 2009
What is the thinking behind a Result.MoveFirst() and MoveNext()
returning a false if a record is there?
So, to read round a result set I end up using a Boolean with a double
negative:
noMoreRows = myResult.MoveFirst()
WHILE NOT noMoreRows
PRINT myResult!id
noMoreRows = myResult.MoveNext()
WEND
I would have expected the MoveFirst() and MoveNext() return true if a
record found, so I'm wondering why it's that way round.
Or, is there a better loop structure to use so that it reads better?
More information about the User
mailing list