Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disappearing alias?
Message
De
20/01/2005 09:20:52
 
 
À
18/01/2005 14:32:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Divers
Thread ID:
00977939
Message ID:
00978840
Vues:
29
So, is that a "local" cursor then? I guess what I'm asking about is what other effects there may be from declaring a cursor name as a local.

Thanks

>If it is a name table issue, declaring a local variable with the same name ("MyComponents") may help.
>
>Thanks,
>Aleksey.
>
>>Hi Jim,
>>
>>IIRC, it's a bug caused by VFP creating new entry in NameTable each time select is run. I don't remember is there's any workaround besides using array instead of a cursor. I hope Jim Saunders jumps in and provides more info.
>>
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform