Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loform not an object - OUT OF SCOPE - 2nd request - HELP!!
Message
De
12/04/2004 06:55:53
Scott Malinowski
Arizona Fox Software LLC
Arizona, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Loform not an object - OUT OF SCOPE - 2nd request - HELP!!
Divers
Thread ID:
00893986
Message ID:
00893986
Vues:
52
Greetings!

On a bizobj form, clicking on a button brings up another form, which does some testing in the INIT method to make sure a condition exists. If not, it returns with a 'RETURN .F.'. The called form is limited to one occurence, so multiple copies are not allowed. Since it is a BizObj form, the first pass doesn't really 'release' the form, but just hides it.

When I correct the condition in the same session (in a separate modal form) and then click the button to load the form again, I get an error stating that 'loForm object is not an object'. After some checking, I determined that ALL THE PROPERTIES that are defined in the frameincl.h include file are OUT OF SCOPE. It's like they don't exist. The culprit property is CHILD_OBJECT. I've checked every single form to make sure they include the frameincl.h include file and they all do.

*!* It is blowing up on the "loForm = ..." command that is in this code that Kevin provided me o add to the
utility.prg DOFORM function right at the very top (this was a fix to multiple form copies issue):

*!* Code added per Kevin McNeish's instructions on March 1st, 2004
IF TYPE("goApp.oForms") == "O"
LOCAL loForm
loForm = goApp.oForms.Get(tcClassName)
IF TYPE('loForm') == "O" AND !loForm.lallowmultipleinstances
loForm.Show()
loForm.lockscreen = .T.
loForm.WindowState = 0
loForm.lockscreen = .F.
RETURN .T.
ENDIF
ENDIF


Anyone have any ideas on this one? Thanks in advance!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform