Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using an alias in a called screen
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00735751
Message ID:
00735798
Views:
11
Hi Marcia.. it is a typo

I have adopted your approach which works fine, but I was really wondering was there any way of using alias's that are created on a form.
(In the way, for instance, any ALIAS's in the dataenvironment can just be Used if the calling screen is a private data session and the called screen is a default data session ?

Regards,

Gerard



>Hi Gerard.
>
>Select * from AnyTable into Cursor MYTABLE
>Use
>Use MyTable in 0 alias 'TEM'

>
>I am surprised that this doesn't hand you back an error. Or is this a typo? The first USE statement closes the cursor you just created. So by the time you get to the next line, if the line did not have syntax errors in it, the cursor would no longer exist.
>
>Are there other ways to directly do a Select Tem on the clled form ?
>
>Provided that the cursor 'MyTable' exists:
>
>USE DBF( 'MyTable' ) AGAIN IN 0 ALIAS Tem
>
>Happy Holidays.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform