Piet van Zanten
Displaying a progressbar December 30, 2011 10:32PM |
CellDisplayDialog(WaitCell) //check the other possible parameters for this function. GaugeActivate(PROGBAR_NoName1,50)(the 50 is the time in hundreds of seconds between refreshing the progressbar from the server. Don't set this time too short, to avoid too many requests.
i is int PROGBAR_NoName1..MaxValue=HNbRec(MyFile) TableDeleteAll(Table_Table1) FOR ALL MyFile_or_Query ON MyKey i++ PROGBAR_NoName1=i Multitask(-1) //do your processing here TableAddLine(blablabla) END PROGBAR_NoName1=0 //reset to zero for next timeThat's it. Looks very nice with the DDW and all.