Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if an object exists
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00098172
Message ID:
00098280
Views:
28
Jim,

WhatIF .Name has been marked as protected or hidden? I know it's a stretch but I'm feeling ornery this morning. *s* Yours does save a few milliseconds per call though.

Although I have marked most of the PEMs of my OLEPublic server as protected to get rid of all of the public Get/Set Property and Method access points that wind up in the .tlb and thereby extremely over complicate the code in VC++ that we use to talk to the server. Especially since VFP generates a nearly useless .tlb as far as VC++ is concerned and I have to edit the generated code to fix it.

>>Jeff,
>>
>>I use this UDF:
>>
>>* isobject.prg 29-Jun-95
>>
>>lparameter roObject
>>
>>return( ( type( "m.roObject" ) == 'O' ) and ( ! isnull( m.roObject ) ) )
>>
>>
>>>is there a function or way to determine if an object existson a form, like wexist() does for windows? TIA
>
>David,
>
>Gee mine is almost lke yours;
>
>
> LPARAMETERS poObj
> RETURN TYPE("poObj.Name") = "C"
>
>
>Saves the ISNULL() stuff.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform