Article ID: 130460
Article Last Modified on 2/11/2000
x=CreateObject('Form')
y=CreateObject('Form')
z=CreateObject('Form')
x.visible=.T.
y.visible=.T.
z.visible=.T.
DEFINE CLASS GreyForm as Form
BackColor=RGB(192,192,192)
Caption="Grey"
ENDDEFINE
The following program is identical in function to the first one. However,
it uses a variable to hold the classname. Now you need only change the
first line to cForm="GreyForm" to base all of the forms off of the GreyForm
subclass.
cForm="Form" x=CreateObject(cForm) y=CreateObject(cForm) z=CreateObject(cForm) x.visible=.T. y.visible=.T. z.visible=.T. DEFINE CLASS GreyForm as Form BackColor=RGB(192,192,192) Caption="Grey" ENDDEFINE
Additional query words: VFoxWin KBfest
Keywords: kbcode KB130460