Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do form cName with cVar
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00620881
Message ID:
00620883
Vues:
12
This message has been marked as the solution to the initial question of the thread.
Hi Stephen,

If you want your form to return some value, the form should be modal. In the Unload method of the form you would put return MyRetVal

and you would call your form this way:

do form MyForm with myVar to myRetVar.

There is a trick to return value from a non-modal form, but may be modal will work for you?

Is it your question?

HTH

>Hello everybody
>
>I need a real world exapmle of "do form cName with cVar" and how to return the var
>
>I want the same form to run with 5 diffrent vars
>gcOld_dir = local dir
>gcSer_dir = server dir
>gcReq_dir = req dir
>gcLpics = local pic dir
>gcRpics = remote pic dir
>
>all the vars are 80 charecters
>
>I want to say
>

>if empty(gcOld_dir)
> do form c_path with gcOld_dir
> if empty(gcOld_dir)
> quit
> else
> replace tbl.old with gcOld_dir
> endif
>else
> replace tbl.old with gcOld_dir
>endif
>

>
>did I explane it ok???
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform