Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Return value of NewObject()
Message
De
24/04/2002 10:50:45
Beth Wetherbee
Virginia Beach Public Schools
Virginia Beach, Virginie, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Return value of NewObject()
Divers
Thread ID:
00648685
Message ID:
00648685
Vues:
43
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform