Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Index offset
Message
 
To
30/05/1997 11:20:04
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00034245
Message ID:
00034258
Views:
33
>>Is there any way to find out what the offset of the current record is under the current index?
>>
>>For example I am trying to find out what the 3rd record is under a certain index for example
>>
>>Any help greatly appreciated.
>>
>>TIA
>>
>>Mike
>
>I have an idea:
>
>nRec = RECNO()
>COUNT ALL WHILE RECNO()nRec TO nOffset
>nOffset = nOffset + 1


Thanks much! Worked great. I used it in the DynamicBackColor of a grid to keep my colors striaght when I reordered.

Procedure Grid.getoffset

rn = recno()
count all while recno() # rn to temp
return temp+1


Thanks again

Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform