Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error...MYSORM is not an object
Message
De
17/08/1998 14:25:06
 
 
À
17/08/1998 14:16:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00127493
Message ID:
00127504
Vues:
35
>>>>>when I run this code:
>>>>>myform.release
>>>>>i get this error message:
>>>>>MYSORM is not an object
>>>>>Under help is says:
>>>>>This name was previously defined as something other than an object.
>>>>>You have another occurrence of name.
>>>>>Check your code for duplicate instances of name.
>>>>>--
>>>>>I have check. I do not have a dup name. can
>>>>>anybody think of anything else it could be?
>>>>
>>>>Where do you call it from?
>>>the ini event on a form.
>>
>>Here, in Form.Init event, it's enough to say RETURN .F. to unload this form (i guess you wanted this). If you want to unload another form, then you should provide real object reference to that form.
>---
>also - what I am doing is called a form and release the revious form.
>examle
>
>do form myform
>do form anotherform
>init event - myform.release
>unload event
>do form myform

This is very strange construction. The reason why it works or doesn't work sometimes (omitting all remarks about the quality of this code) may be that 'anotherform' gets intitiated faster then 'myform', i.e. 'myform' doesn't exist yet, when you try to call it.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform