Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form not recognized as Object
Message
From
11/06/1997 12:39:21
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, United States
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00035939
Message ID:
00035950
Views:
36
>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...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform