Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Instantiating ojbect question
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01470240
Message ID:
01470246
Vues:
42
>>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.
>
>What if you check for
>type('thisform.myBizObj.name') = 'C' - this is the check I use for such cases.
>
>Also, are you sure return .f. line is firing?

Yes, the type for name returns "U" so I can use it for checking if the object instantiated. Thank you.
"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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform