Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command SELECT not working with a view
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01322019
Message ID:
01322043
Views:
9
>Hi,
>
>I have a problem. When I try to use the simple command SELECT cView, it returns me an error. Alias cannot be found. There is a way around that, but I can't find it.
Hi,

That sounds like like a name-expression issue to me...
When you have an open alias named 'cView', then USED('cView') returns true and you can 'SELECT cView'.
But when you have a name expression, e.g. a local variable 'cView' that contains the alias name as a string, then you'd need to put the quotes differently:
Local cView
cView = "theAlias"
Use theTable In 0 Again Alias (cView)
? Used(cView) && true
? Used(theAlias) && error 12
? Used("cView") && false
? Used("theAlias") && true
Select theAlias && ok
Select (cView) && ok
hth
-Stefan
Previous
Reply
Map
View

Click here to load this message in the networking platform