Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find where a control is used?
Message
De
11/04/2007 09:26:58
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01214200
Message ID:
01214382
Vues:
24
>I tried tools -> Code Reference, before I posted my question. But all it finds is the .vcx library where the control My_combo resides.
>

Try using some code like this. With the project open:
FOR EACH oFile in _VFP.ActiveProject
  IF oFile.Type = "K" && form
     USE (oFile.Name) ALIAS __FORM
     SCAN FOR __FORM.Class = m.cSpecifiedClass
         * Do something
     ENDSCAN

     USE IN (__FORM)
  ENDIF
ENDFOR
Tamar

P.S. Do you mind if I use this question and your name for the Advisor Answers column?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform