>Hi all:
>
>Form A declares a set of variables. Click event of a command button fires up another Form B (within Form A). I pick a date, name and a time (displayed as a charcter field), which are assigned to variables. User clicks return on Form B to be returned to Form A.
>
>What is the best way of passing these variables from Form B to Form A?
>
>Thak you in advance.
Couple of ways. One would be to pass form's A reference to form B, e.g.
do formB with this
formB init
lparameter toCallingForm
thisform.oCalForm = toCallingForm
You can bind your textboxes to thisform.oCalForm properties (or assign them before formB releases) In formB.Destroy put thisform.oCalForm = null
If you use VFP7 you can pass array back, but I don't use VFP7 yet...
If it's not broken, fix it until it is.
My Blog