Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement