Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function to return numeric position of record in index?
Message
From
02/04/2002 15:15:49
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/04/2002 19:49:11
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00639744
Message ID:
00640069
Views:
24
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform