Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form not recognized as Object
Message
De
11/06/1997 12:39:21
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
 
À
11/06/1997 10:37:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00035939
Message ID:
00035950
Vues:
33
>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
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform