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