If I type this code in the command window:
oStudent = NEWOBJECT('student', 'student.vcx')
and the Init of the student class returns .F., then the value of oStudent is .F., leading one to believe that the NEWOBJECT() function is returning .F. if the object does not instantiate (which I expected).
However, if I run this code:
oForm = NEWOBJECT('myform', 'myformclass.vcx')
?oForm.NewObject('oStudent', 'student', 'student.vcx')
and the Init of the student class returns .F., the return value of ?oForm.NewObject() is .T., even though the student object didn't instantiate, which seems weird to me.
Can someone tell me why This.NewObject() would return a .T. even if the object being created by NewObject did not instatiate?
TIA
Beth Wetherbee, MCSD
VBCPS