Article ID: 129648
Article Last Modified on 8/25/1999
STORE This.Value TO uRetValue ThisForm.Release && release the form
*begin program
LPARAMETERS tcfilename && t-PARAMETER c-char
LOCAL ofrmMyForm && o-object (instance)
*create an instance of the form
ofrmMyForm=CREATEOBJECT("frmMyForm", tcfilename)
RETURN ofrmMyForm.SHOW()
DEFINE CLASS frmMyForm AS CUSTOM
* create property to hold the filename
cfilename=""
FUNCTION INIT(tcfilename)
THIS.cfilename=tcfilename
RETURN .T.
ENDFUNC
FUNCTION SHOW
PRIVATE uRetValue && u-unknown type
STORE .T. TO uRetValue
* call the form
DO FORM (THIS.cfilename)
RETURN uRetValue
ENDFUNC
ENDDEFINE
*end program
? MYTEST("MYFORM.SCX")
Additional query words: VFoxWin
Keywords: kbcode KB129648