Select mytable
set order to tag order1
goto top
lvKeyvalue = mytable.field1
locate for field1 != lvKeyvalue
lnResult1 = Recno()
set order to tag order2
goto top
lvKeyvalue = mytable.field1
locate for field1 != lvKeyvalue
lnResult2 = Recno()


On Tuesday, September 20, 2011 1:03 PM, "Michael Savage"
<[email protected]> wrote:
> I have a table, with two indexes. (In a cdx file)
> 
> I need to know the new place in the table when the order changes.
> ie if it is the second record in the table in sort order #1, what is it 
> in order #2.
> 
> Let say that in order 1 it is the 2nd record, but in order #2 it would 
> be the fifth record.
> How do I find out when I switch order, what position it's in?
> 
> Can't use recno(), what other functions is there.
> Mike
> 
> 
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to