Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instantiating ojbect question
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Instantiating ojbect question
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01470240
Message ID:
01470240
Vues:
84
Hi,

I am confused about how objects are instantiated. Here is an example:

I have a form and a BIZ object is dropped on this form. When the BIZ object is instantiated (I watch in the debugger), in the INIT of BIZ object I have a line "RETURN .F.". I thought that when your RETURN .F. from the INIT the object is not instantiated. But when I later in the INIT method of the form check for this BIZ object I get the following:

type( "thisform.mybizobj" ) returns "O" (meaning object)
isnull( thisform.mybizobje ) = .F.

Why does the BIZ object type is "O" and not null when the INIT method of this object returned .F.?

TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform