Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using createobject to create combo boxes at run time...
Message
From
14/07/1998 17:31:45
 
 
To
14/07/1998 17:18:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00117342
Message ID:
00117346
Views:
17
In your combo class you can add an LPARAMETERS statement to the init of the control and then pass those variables in the createobject control. For example,

*myCBOclass.init()
LPARAMETER cTable, nxPos, nyPos
*etc, etc

Then,
thisform.addobject('cbo1', 'myCBOclass', alias(), 23, 57 )

HTH

>Having been shown the light on using combo boxes to display all the fields in a table, I now want to be able to offer the option to users at run time, possibly for one, more often for a number of related tables. So I need to pass parameters for the table, position of the box etc. I can find no useful example of syntax using createobject to do a job like this. Can anyone point me at one?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform