IF NOT PEMSTATUS(THISFORM, [cntFILENOTE], 5) THISFORM.NEWOBJECT([cntFILENOTE], [cntFILENOTE], FULLPATH([modules\vCPR5.vcx])) THISFORM.cntFILENOTE.LEFT = 160 THISFORM.cntFILENOTE.TOP = 264 THISFORM.cntFILENOTE.HEIGHT = THISFORM.HEIGHT - 264 THISFORM.cntFILENOTE.ANCHOR = 15 THISFORM.cntFILENOTE.VISIBLE = .T. ENDIFi swap out the containers when certain buttons are clicked to show different data as needed. this is a form to replace an existing query form where all data are collected before the form becomes visible. I am just trying to speed things up and only bring in data which are needed by all users. any less frequently used data are recalled by buttons
>>IF PEMSTATUS(THISFORM, [cntEmployer], 5) >> thisform.cntEmployer.VISIBLE=.f. >> thisform.RemoveObject([cntEmployer]) >>ENDIF >>>>