Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Selecting table in a variable
Message
From
07/07/2004 09:55:08
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
06/07/2004 12:10:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00915926
Message ID:
00921379
Views:
22
>You have probably already received an answer that works for you, but I got this tip a while back and it comes in pretty handy when nothing else seems to work right. As long as the value of your variable is equal to the alias of the file you are trying to select...type the following
>
>select &ctable

Actually, a better version of the trick is

select select(ctable)

because it won't error out if the table is not in use. Select("AnyNameHere") is returning a zero if there's no cursor with the given alias, so then you're just selecting a new work area.

back to same old

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

Click here to load this message in the networking platform