Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a ControlSource combo box
Message
From
24/09/2001 21:23:57
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
24/09/2001 20:06:09
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00560241
Message ID:
00560334
Views:
16
>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'
        ** your code here, do with oCur whatever you like
    EndIf
endfor
release oCur

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform