Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disappearing alias?
Message
From
20/01/2005 13:28:15
 
 
To
19/01/2005 00:07:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Miscellaneous
Thread ID:
00977939
Message ID:
00978974
Views:
42
Hi Thomas,

If the problem is caused by the fact that the alias is removed from the name table while the command is being executed then declaring a local variable should prevent that for any command.

Thanks,
Aleksey.

>H Aleksey,
>
>>What I meant was:
>
>>LOCAL MyComponents
>>MyComponents=1
>>select ... INTO CURSOR MyComponents
>
>seems I have misinterpreted your intent.
>Do you think for my more generic use function problem something like
>
>parameters tcpath, tcAlias
>if used (m.tcAlias)
>   select (m.tcAlias)
>   use
>else
>   select 0
>endif
>LOCAL &tcAlias
>Store 1 To (m.tcAlias)
>use (m.tcpath) again alias (m.tcAlias)
>
>might help as well, or has this only a chance if the alias is programmed
>directly as CURSOR MyComponents ?
>
>Come to think of it, I haven't tried
>use (m.tcpath) again alias &tcAlias
>because of long standing habit to keep macro use to a minimum.
>Currently I have defragged the disks again, and the error doesn't show up any more.
>I will try again if I have a relatively stable "error environment".
>
>thanks
>
>thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform