Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check for presence of a property
Message
De
28/08/2003 07:32:06
 
 
À
28/08/2003 01:08:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00824084
Message ID:
00824123
Vues:
26
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform