Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SEEK or SEEK()with cursors??
Message
From
20/08/1998 15:19:05
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00127371
Message ID:
00128599
Views:
49
>>You can create ONE _structural_ index, but you can create any indexes you want if they're not structural, i.e. not in the default file, but in a separate .cdx file. My standard procedure for this is
>>
>>lcCdx=lcSortWork+sys(3)
>>
>>index on [whatever] tag Tag1 of (lcCdx)
>>index on [whatever] tag Tag2 of (lcCdx)
>>index on [whatever] tag Tag3 of (lcCdx)
>
>Now that is correct! Thanks for pointing that out, I hadn't really considered that method of doing things, mainly because of the house keeping involved.
>If you make your SQL select cursor R/W, you can create more than one tag in the structural CDX. However, this CDX will not automatically remove itself when the cursor is closed, even though it still has the same (root) name! It's still pretty easy to remove this file when you close the cursor and you don't have to worry about "scoping" on the variable for your separate CDX file name.

You can index the R/O cursor like this, and then Use it Again - the .cdx should be usable, and should vanish when you close them. Didn't check this out, though.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform