aStatusBar Size limit
Keywords: aStatusBar Size limit maximum progress range
Question:
Is there a maximum progress range for the astatusbar command.
I am using a huge number - 472,556 as my max and it doesn't appear
to be working. If there is a MAX can you tell me what number is?
AddExtender("wwsop34i.DLL")
t1 = 472556
astatusbar(0,"test","test",t1,0)
for xloop = 1 to t1
astatusbar(1,"testb","testb",t1,xloop)
next xloop
Answer:
Yes I believe the maximum progress range is 65535. If your number is larger than that you might try dividing
the number into a smaller value. I recommend doing a little math and addjusting the range to a 0 to 100 scale
User Shared Code:
Here is some sample code which can Range up to 1,000,000,000 for people who have a Pentium 7 :)
AddExtender(StrCat(DirHome(),"wwsop34i.DLL")) ; Load extender.
aStatusBar(0,"","",0,0) ; Init astatusbar.
Tlc=1000000000 ; Total line count.
Clx=500000000 ; Current line count.
aStatusBar(1,"Title","Text",Min(34000.0,Tlc+0.0),Min(Clx+0.0,(Clx+0.0)/(Tlc+0.0)*34400.0)) ; Show progress.
TimeDelay(1)
aStatusBar(2,"","",0,0) ; Close bar.