[V4Rb2] VCursor.NextRecord
Ruslan Zasukhin
sunshine at public.kherson.ua
Thu Jun 2 22:26:13 CDT 2005
On 6/2/05 10:13 PM, "Charles Yeomans" <yeomans at desuetude.com> wrote:
Hi Charles,
> Given a fresh new VCursor object, does VCursor.NextRecord go to the
> first record, if it exists?
No.
This is ODBC style -- new cursor has position BEFORE first record.
Valentina style is -- we are on the first record.
> I have to say that I have long disliked
> the style
>
> If c.FirstRecord then
> Do
>
> Loop Until Not c.NextRecord
> End if
Yes it is more long than ODBC style, but as for me it is more natural,
Especially if think about prev(), what ODBC was not able do long time.
FYI, in 2.0 we have introduce ODBC style also.
Please check new functions:
Table.EOF() .BOF()
Cursor.EOF() .BOF()
We have use them In RBDB api on C++ level.
So if I not mistake this should work
curs = ...
while( curs.NextRecord_ODBC() )
...
end
Aha, it seems we have not open them into REALbasic.
Please add feature request for this 4 functions:
bool FirstRecord_ODBC( void );
bool LastRecord_ODBC( void );
bool NextRecord_ODBC( void );
bool PrevRecord_ODBC( void );
--
Best regards,
Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc
Valentina - Joining Worlds of Information
http://www.paradigmasoft.com
[I feel the need: the need for speed]
More information about the Valentina
mailing list