No, you cannot. From VFP help: "To return a value to the TO VarName clause in the DO FORM command, use the RETURN command in the Unload event".
There's something wrong with your design if you have to call a form to just return a value.
>I call a form like this
>
>
>DO FORM c:\frmkey.scx WITH 'MARB65042713' TO tnam
>
>
>In the init of the frmkey form i have pout this code
>
>
>IF Thisform.recherche(tcVal) > 1
> Thisform.ConfigKey(tcValRech,tcVal)
> Thisform.configgrd(ALLTRIM(UPPER(tcValRech)))
> GO TOP
> Thisform.Refresh
>ELSE
> RETURN thisform.valret
> RETURN .f.
>ENDIF
>
>
>In The Recherche Method I init the valret property
>and i need to have this value in the tnam variable
>Is it possible
>
>Benoit
--sb--