Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find where a control is used?
Message
From
11/04/2007 09:26:58
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01214200
Message ID:
01214382
Views:
23
>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?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform