Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find where a control is used?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01214200
Message ID:
01214534
Views:
21
>>
>>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.

You're welcome. Still it's a bit strange that Code Reference didn't find it. I thought it should.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform