Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Next and Previous
Message
From
07/10/2000 21:23:32
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00426536
Message ID:
00426564
Views:
27
Maybe I'm missing something, but that doesn't seem to be doing the same thing at all...

Your code looks like it's storing the first record's field, then just scanning through the rest of the table. How does that get me the previous and next record for each record?

Thanks,

Michelle

>Hi, Michelle!
>
> Yes you can, just some programming tricks. See code sample below, in bold - differences
>
>
>
>if !eof()
> lcPrev = MyField
> SKIP

> SCAN REST && scan from current position till the end
> lcNext = MyField

> < do stuff here using current record plus the stuff gathered from other
> records >
> lcPrev = MyField
> ENDSCAN
>endif
>
>HTH.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform