Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexing child tables in a relation
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00429726
Message ID:
00430235
Views:
14
Hi Neighbor:

>>set relation to padl(alltrim(str(val(usr_pk))),5,'0') into userprefs
Yeah, thats what I was thinking of doing. Then create a compound index on the child thats that converts the integer key to char and concatenates the last name field. If I have set exact off then the seek will match the parent on the first half of the index leaving the second half to order the child table on last name.

>>The other alternative is to build the child cursor (without indexes) each >>time a user changes records in the parent table. If the user selected a >>different row, you could call the SP that builds the child cursor again. >>AfterRowColChange event.

That would mean excessive round trips to the server.

Thanx,
Charlie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform