General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only