sachinbaan
10th September 2014, 14:04
Hi,

I want to use progress indicator in one of my session which is processing many lines together, I m facing problem in distribute the 'percentage complete'

Example:

I am having 500 records to process.

Percentage = 100/500
Percentage = 0.2

change.progress.indicator(Percentage)

since Percentage is of type 'long' it would not contain '0.2' it will have '0', so progress indicator is not showing any progress.

Any help regarding this pls....

bhushanchanda
10th September 2014, 16:45
Hi,

Can't you use a loop?

for i = 1 to n
if change.progress.indicator((i*100)/n) then
break
endif
endfor

select ...
selectdo
perc = perc + 1
change.progress.indicator((perc*100)/total.no.of.rec,"Processing")
endselect
destroy.progress.indicator()
Note, its not tested. Just an idea. You can tweak it and use.

sachinbaan
11th September 2014, 07:53
Hi,

I done it in some another way....

say for example I m having 500 records,

Step 1 : I divide 100/500 = 0.2

Step 2 : add the result till it get reminder 0 if reminder is zero then indicator will show progress.

sachinbaan
11th September 2014, 07:54
Hi,

Above code is working but, I will try that u have suggest. thank you.