>DEFINE CLASS statusform as Custom > oForm=null > FUNCTION init() > this.oform=CREATEOBJECT("form") > WITH this.oform > .height=200 > .width=300 > .controlbox=.f. > .addobject("mylistbox","listbox") > .mylistbox.width=.width > .mylistbox.height=.height > .mylistbox.fontsize=8 > .mylistbox.visible=.t. > .alwaysontop=.t. > .caption="Status" > ENDWITH > > ENDFUNC > > FUNCTION Update(cMessage as String) > > this.oForm.visible=.t. > this.oForm.mylistbox.additem(cMessage) > this.oform.mylistbox.listindex = this.oform.mylistbox.listcount > > ENDFUNC > >ENDDEFINE > >>
> >statform=newobject("statusform","statusform.prg" > >do while <somecondition> > insert into table1 (field1) value (somevalue) > statform.update("Adding " + somevalue) > wait window "" noclear timeout .001 && my current workaround >enddo > >release statform > >>