Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form not recognized as Object
Message
De
11/06/1997 14:52:39
 
 
À
11/06/1997 12:39:21
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00035939
Message ID:
00035963
Vues:
34
>>What are some reasons a Form would not be recognized as an object? I'm trying to pass parameters and call procedures from other forms, but I'm getting a '"FormName" not found' message. If I re-run the form, then it is recognized as an object and all procedures work. Why not the first time?
>
>Mark, I don't know why passing parameters and calling procedures are related, so I'll answer the best I can.
>
>How do you instantiate the form? DO FORM formname WITH parmlist NAME oMyForm, should work fine. Do you call it from a menu selection, or from another form. oMyForm may need to be public. I'm just guessing here, since I don't know the whole problem.
>
>Calling procedures from other forms?? If those procedures are for the form they are properties of, then ok. If they are more general/generic, they should either reside in an application object or a utility.prg of some sort. Even though this is OOP, I still believe in maintaining a basic procedural heirarchy: always calling back, or up for common functions, and forward or down for specific functions, and never across.
>
>HTH

Thanks for the help. I was calling the form from a private data session, which means it's part of that session and not accessible from other forms, apparently. Declaring it a public variable seems to have cleared up the problem, though. (I'm sure there will be more.) Thanks again.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform