Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP5: How to check to see if the object exists in the me
Message
From
07/05/1997 21:37:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00030931
Message ID:
00031257
Views:
64
>>There's one problem with this: if Thisform.MyObject doesn't exist at all, I believe you'll generate an error. In addition, this code is not as clear as to intent, making maintenance more difficult in the long run.
>
>David,
>
>Nope, you just get U as the return type for undefined.
>
>JimB

I think David is somehow right. The code loses in readability. But I like it.

It may also give you a problem on a long run if MS decides that Name is no longer a property for all objects. After all, is not specified that all objects have it. :)

Vlad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform