Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record pointers on empty cursors/tables
Message
From
02/02/2004 13:57:36
 
 
To
02/02/2004 13:36:03
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00872917
Message ID:
00873079
Views:
19
Hi Jay,


>I like that, but the cursor/table may be unknown at design time.
Is there a way to know the key field (or expression) of the current ALIAS?

A partial solution exist, but it is slow:
with 
ATagInfo(ArrayTags)
you can search a PRIMARY or CANDIDATE index ( but only if indexes are open ), 
store :
- nWorkArea = SELECT()
- tagnumber 
- tagvalue = evaluate(tagexpression)

when you restore record position,use
SEEK(m.tagvalue,m.nWorkArea,m.tagnumber)
but if
do something
remove index, remove table, change table schema .....
it is insufficient.

A general solution, without restrictions is impossible.

Fabio
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform