General information
Category:
The Mere Mortals Framework
Title:
Loform not an object - OUT OF SCOPE - 2nd request - HELP!!
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!
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only