Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for presence of a property
Message
From
28/08/2003 07:32:06
 
 
To
28/08/2003 01:08:22
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00824084
Message ID:
00824123
Views:
27
Hi Abhishek

>Is there any function to check for the prescence of a property in an object. Or do I have to write IF conditions so as to exclude objects like LABEL, COMMANDGROUP etc.

No, you don't need lots of IF statements, just use code like this:
FOR lnCnt = 1 TO This.Objects.Count
  loObj = This.Objects[ lnCnt ]
  IF PEMSTATUS( loObj, 'setfocus', 5 )
    *** Has the method
  ELSE
    *** Doesn't have it
  ENDIF
ENDFOR
----
Regards
Andy Kramek
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform