General information
Category:
Forms & Form designer
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only