Information générale
Catégorie:
Codage, syntaxe et commandes
>I've heard that using PUBLIC variables is not a good idea, that it is better to use properties instead. I don't understand this. How do I set the properties of a form that is loaded from another form. For example, in the first form the user enter some data or checks some boxes and clicks OK. In the click event of the OK command box I want to load a form depending on what the user entered, and I want this form to have certain properties set depending on what the user selected.
>
>Is this information in the manual?
>
>Jeff
With two forms:
frm1 : Is the master form.
frm1.txtbox1 = Username field
frm2 : Is the child form.
In frm1.buttonOK.click()
_screen.frm2.txtbox1.value=this.parent.txtbox1.value
OR
_screen.frm2.txtbox1.value=_screen.frm1.txtbox1.value
I don't usually work with multiforms on a screen but I believe this is how to do it.
Gene Berger
Nationwide Warehouse & Storage
Columbus, OHIO
Précédent
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