Something like this might help assuming the variables are defined.
Local loForm
DO form CashTenderedForm name loForm noshow
If VarType(loForm) = 'O'
loForm.Property1 = mvar1
loForm.Property2 = mvar2
etc..
loForm.Show()
endif
Return
You'll need to set the control source of your controls to the properties on the form.
Then in whatever save routine you have in the form you can
mvar1 = ThisForm.Property1
mvar2 = ThisForm.Property2
etc
Insert into table from memvar
>Hi,
>If I am creating form modal than in this case I cannot open more than one form at a time through menu. while in some case my user need to oprn parallel other form also.
>Is any solution to make form modal and more than one form can be opened at one time...please advise.
>
>TIA,
>Sajjad
>
>>I think the basic problem here may be scope of variables defined in calling program. Thus
>>
>>
>>** call.prg
>>
>>NewVar = "Somevalue"
>>Do Form ThatForm
>>Return
>>
>>If the form is not modal, the prg will continue to the Retrun, its variables will go out of scope, and so ... the problem??
>>
>>You need to make the form modal, I think.
>>
>>HTH
>>
>>Mike