Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memory Variable problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00634629
Message ID:
00636023
Vues:
22
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
Mark S. Swiencki
EPS Software www.eps-software.com
mark@eps-software.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform