Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trouble with .NULL.
Message
From
29/09/1998 15:24:06
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00142077
Message ID:
00142079
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform