Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving a form
Message
De
03/11/1998 15:14:13
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00154041
Message ID:
00154082
Vues:
21
>>>>>
>>>>>I thought the data environment took care of that. The only data the form can't find is the cursor I created.
>>>>
>>>>You should help DE.
>>>>Is cursor created in the same form? Could you provide more details?
>>>
>>>Yes, the cursor is created in the same form. What details do you want?
>>>Thanks for the help.
>>
>>Some pretty simple details. For example, why and in what event you found that cursor disappeared. The only way to 'disappear' cursor (within the same form) is to close it. If, for some reason, you open another table/cursor in the same work area then the previous alias is gone. BTW, are you aware that creating a cursor you just get an alias linked to some memory area, i.e. not exactly physical file?
>
>The cursor doesn't disappear - I get an error message saying it doesn't exist. (Maybe that means it disappears!.) I say
> SELECT fields FROM table INTO CURSOR tempdata WHERE ...
> (There should be records selected.)
>My next statement is then
> USE tempdata in 0
>That's where I get the error message.
>Before I moved the project, this form worked. Therefore I conclude the error message has to do with where it's looking for the CURSOR.

It's strange that it worked before, because it cannot work. When you run Select ... Into Cursor, VFP automatically opens new work area with alias ('tempdata' in your case), i.e. there is no complelling reason to apply 'USE' here. If, for some reason, you want open the cursor in one more work area (i'm unsure that this is your purpose), then you should use different syntax.
So, after Select you don't need in USE.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform