Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function to return numeric position of record in index?
Message
De
02/04/2002 15:15:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
01/04/2002 19:49:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00639744
Message ID:
00640069
Vues:
25
>Is it possible to get the numeric position of a record when a table is viewed in indexed order? Something like a logical *indexed* RECNO()?

If you use SELECT - SQL to get your data, be sure to include NOFILTER. Otherwise, the record number is meaningless for your purposes.

You can also save the record number, and do something similar to this:
lnRecno = recno()
lnRecCounter = 0
go top
do while recno() # lnRecno
  lnRecCounter = lnRecCounter + 1
  skip
enddo
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform