Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disappearing alias?
Message
From
20/01/2005 09:19:21
 
 
To
18/01/2005 10:23:49
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, United States
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:
00978839
Views:
31
Actually, this error was occurring during an overnight job (under "Scheduled Tasks"), so there was no user around.

Jim

>Hi James,
>Is this an error you experienced, or is this a message from your ErrorLog? I ask because if a user closes the form as it's running this code, (DOEVENTS), you might see this sort of behavior.
>
>>Any guesses on how an alias can disappear?
>>
>>I have the following:
>>
>>      SELECT * FROM components INTO CURSOR MyComponents ;
>>         WHERE KitID==lcPartNo
>>      llIskit = 0<RECCOUNT("MyComponents")
>>
>>This is in a loop that is executed a few thousand times. On rare occasions, the second line fails with "alias not found" ... and when this occurs, ALIAS() is empty! That's right, I get a cursor with NO alias.
>>
>>Any guesses on how to get around this? (No, it's not as easy as doing RECCOUNT() -later on, having done various and sundry other things with other SELECT statements, I need to get back to this alias --)
>>
>>Thanks
Jim Nelson
Newbury Park, CA
Previous
Reply
Map
View

Click here to load this message in the networking platform