Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find where a control is used?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01214200
Message ID:
01214532
Vues:
19
>
>I didn't try the code and didn't really read it.
>
>K is for form's only. I also added V for VCX.
>
>FOR EACH oFile in _VFP.ActiveProject.Files
>  IF oFile.Type $ "KV" && form
>     USE (oFile.Name) ALIAS __FORM
>     SCAN FOR __FORM.Class = 'ccombobox'
>         =MESSAGEBOX(__Form.Objname)
>     ENDSCAN
>
>     USE IN select("__FORM")
>  ENDIF
>ENDFOR
This is very helpful. Now I can find the .vcx files where the control is used in containers. I will just have to manually scan all containers of these .VCX to find the control.

Thank you very much.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform