>I spoke too soon. I can use your code to get what I want but I need to pass my builder a referance to the form/form.dataenvironment that the component is on. ie if I put a check box on formA I need to run Levey's BuilderB by calling it as follows in the BuilderX property:
>
>libraryName,myCheckBoxBuilder WITH ThisForm.DataSession
>
>or
>
>libraryName,myCheckBoxBuilder( ThisForm.DataSession )
>
>
>Then in the myCheckBoxBuilder form's Init method I can run the default code and populate a custom form.cursorarray collection with the cursor names from the passed datasession object. From there I can load my cboControlSource with the cursor names.fields list I need to pick the ControlSource property from.
>
>See what I am trying to do?
>
>I think I need to modify the Builder code in VFP to allow parameter passing but I can't find it to modify.
The modification would be to use a parameter instead of aselobj(), i.e.
lparameters oDS
FOR EACH oCur IN oDS.objects
IF oCur.BaseClass='Cursor'
EndIf
endfor
release oCur