Mensaje
General information
Foro:
Visual FoxPro
Category:
Bases de datos, tablas, vistas, índices y SQL
Miscellaneous
ID de la conversación:
01322019
ID del mensaje:
01322043
Views:
11
>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
Responder
Mapa
Ver