Page 1 of 1

dc_getprogress

Posted: Thu Dec 06, 2012 3:40 pm
by bwolfsohn
Roger,

Have a problem with dc_getprogress..

this is the get
@ 5,1 DCPROGRESS oProgress SIZE 50,1 PERCENT COLOR STA_BG1COLOR MAXCOUNT mail->(recc()) ;
EVERY int(mail->(recc())/100)


and this is what's called during the process..

DC_GetProgress( oProgress, MAIL->(RecNo()) )

there is no mail index active, but the progress bar is all over the place.... the % indicator in the middle of the progress bar is correct, just the colored bar is going crazy!!
64,724 records
i see it in 257 and 258...

any thoughts ??
Where did i screw up ?? :think:

Re: dc_getprogress

Posted: Thu Dec 06, 2012 4:48 pm
by rdonnay
You must be skipping through an index.
Record numbers will jump all over the place if an index is set.

Re: dc_getprogress

Posted: Thu Dec 06, 2012 4:56 pm
by bwolfsohn
i did a wtf and the record numbers were consecutive (for the 1st few hundred, then i got tired of watching)

after reading your message i did an ordsetfocus(0), and,

as always...

you're right.. :)