James,
Thanks for your feedback
James Bott wrote:It looks like the nPercent you are calculating is the percent of the total number of indexes. Also you have defined the range as 0-100. So, try this--take out the first two lines and add the last line.
// oProg:StepIt()
// oProg:nPosition += nPercent
oProg:setPos( nPercent )
Regards,
James
Try a oOb:Refresh() or a Sysrefresh() in your loop.anserkk wrote:But now another problem. The Dialog does not display the text on the window. ie the Status DBF Name, No of Records. Index Key. But if I put a MsgInfo("Some Text") and pause the execution of the loop, then I can see the Status ie DBF Name, No.of Records, NTX Key
Kindly go through the screen snapshot and code in the beginning of this thread
What could be wrong ?.
DEFINE DIALOG oDlg TITLE "Reindex Data Files" STYLE nStyle SIZE 600,300 PIXEL ;
@01,01 PROGRESS oProg POSITION 0 SIZE 250, 8
@03,01 BUTTON oBtn PROMPT "Reindex" SIZE 40,12 ACTION {oProg:SetStep( 1 ) , oProg:SetRange( 1, 100 ), DoIndexing(oDlg,oProg) }
@03,10 BUTTON oBtn2 PROMPT "Close" SIZE 40,12 ACTION { CloseDbf("All"), oDlg:End() }
@04,01 SAY oSay1 VAR cSay2 OF oDlg
@05,01 SAY oSay2 VAR cSay2 OF oDLg
ACTIVATE DIALOG oDlg CENTERED
Try a oOb:Refresh() or a Sysrefresh() in your loop.
Also, don't put your "@04,01 say" code IN your DO WHILE loop. You need to use the SAY's BEFORE your ACTIVATE DIALOG code.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 58 guests