Article ID: 126956
Article Last Modified on 2/12/2000
DO FORM frmtest1 TO cOkvarThis statement returns a value to the cOkvar variable if a RETURN statement is placed in the Unload method of a Form and the form is modal (WindowType=1-Modal).
129648 Calling a Form as If It Were a Function to Return a Value
THISFORM.Release
THISFORM.lRetVal = THISFORM.Text1.Value
*-- 'text1' refers to the text box
RETURN THISFORM.lRetVal
DO FORM MyForm TO lMyRetVal
= MessageBox(lMyRetVal)Additional query words: VFoxWin
Keywords: KB126956