Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
LOCATING backwards
Message
From
24/10/2003 13:18:40
 
 
To
24/10/2003 11:34:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00842157
Message ID:
00842305
Views:
29
Timothy, et. al. (via Çetin)-

>
>>can you use the locate cmd to start at end of a dbf and proceed backwards?
>>
>>If you set your index descending yes :)
>>Cetin
>
>Something like (untested) :
>
>If val(sys(21))>0
> lcDescending = iif(descending(val(sys(21)),'myAlias'), ;
>	' ASCENDING ',' DESCENDING ')
> Set order to tag (order('myAlias')) &lcDescending
>endif
>
Please review this KB Article http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q165410 before using this technique. If you're depending on buffering and using a grid, this bug has the nasty side effect of not respecting the buffering let alone the data session.

In my case I found it worked to simply scan to find the previous value, but I had a guaranteed small data set.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform