Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can I get a listing of ControlSources in a form?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00569049
Message ID:
00569154
Views:
19
>>I was wondering if it's possible to get a printout of all the ControlSources used in a form?
>>
>>TIA,
>>Rick Liebespach
>
>You can use a number of AMembers() calls to check the controlsource property of those objects who have them:
>
x=Amembers(frmMembers, This, 2)
>For y=1 To x
>	lcSource = frmMembers(y)
>	lcObjects = lcObjects + lcSource
>	
>	If Type("This." + lcSource + ".ControlSource") <> "U" Then
>		lcObjects = lcObjects + ": " + Eval("This." + lcSource + ".ControlSource")
>	Endif
>
>	lcObjects = lcObjects + CRLF
>Next
>Although if you have container objects like grids you might have to drill down several levels deep to get at every controlsource property. HTH



Thank you for your insightful reply!
I've now been able to do what I needed.

I needed to produce a checklist of variables to ensure that everything had been initialized and scoped properly. I'm in the process of taking a FoxPro 2.6 system and bringing it to the WEB. As a result I have a lot of converted screens/forms and I didn't want things slipping thru the cracks.

The others gave some good/insightful replies too!
Thank you to all of you who replied.

Rick
Previous
Reply
Map
View

Click here to load this message in the networking platform