with this .caption = space(20)+"De-Duper for " + alltrim(lcCity)+", "+lcState+" FY Year: "+lcFY do case case .dedupetype = DDJC_TRNX && Weekly Transaction Processing * this.removeobject('grdBldmstr2') && remove grid for parcel processing mode .newobject('grdBldMstr','grdBldMstrTrxn','deductrl.vcx') .grdBldMstr.left=12 .grdBldMstr.top=6 .grdBldMstr.visible=.t. .caption = .caption + " - " + DDJD_TRNX case this.dedupetype = DDJC_PRCL && Parcel Processing * this.removeobject('grdBldmstr') && remove grid for weekly transaction processing mode * this.grdBldmstr2.name = 'grdBldmstr' && rename parcel processing to primary grid name .cmdDelBldgInfo.visible=.t. .newobject('grdBldMstr','grdBldMstrParc','deductrl.vcx') .grdBldMstr.left=12 .grdBldMstr.top=6 .grdBldMstr.visible=.t. .caption = this.caption + " - " + DDJD_PRCL case this.dedupetype = DDJC_TRNM && TranMstr Maintenance .caption = this.caption + " - " + DDJD_TRNM wait window 'DEDUMAIN.Init: "' + DDJC_TRNM + '" mode of de-duping is not yet supported.' return .f. && fail otherwise wait window 'DEDUMAIN.Init: unknown de-duping job type. Must be "' ; + DDJC_TRNX + '" or "' + DDJC_PRCL + '".' return .f. && fail endcase endwith