Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index offset
Message
 
À
30/05/1997 11:20:04
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00034245
Message ID:
00034258
Vues:
31
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform