Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trouble with .NULL.
Message
De
29/09/1998 15:24:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00142077
Message ID:
00142079
Vues:
30
>use olastcontrol as an object reference to a control. olastcontrol is a custom property of the form set to .NULL. in the pem. i reset to .NULL. upon the forms logical initialization. after a control gets focus olastcontrol = this. at several place in my code i need to know if olastcontrol has a valid object reference. tried type("olastcontrol"), but after olastcontrol has an object reference and is reset to .NULL., it is still an object. tried olastcontrol = .NULL. but it doesnot like that (blows by the code), when it is = .NULL. but an object.
>
>how can i identify when olastcontrol contains a valid (not .NULL.) object reference?
>
>by the way. what is .NULL. could find no reference to it.
>
>thanks - brenda

IF TYPE("Thisform.oLastcontol")="O" AND NOT ISNULL(Thisform.oLastcontrol)
...
ENDIF
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform