www.icetips.com  Icetips Utilities Documentation 1/14/2012    

Progress Class:  GetCurrentPercent

Previous  Top  Next  


Prototype: (),BYTE

 

ReturnsReturns the integer of the current percent of where the progress is.  This number will always be in the range of 0 - 100

 

This method calls the Calculate methods and then returns the value of the PercentValue property.

 

Example:

ITP  ITProgressClass

Q1   Queue

F1     Long

     End

Q2   Queue

F2     Byte

     End

I    Long

 Code

 !! Queues are filled here.

 ITP.Init(?Progress1,Records(Q1),True)  !! Initialize with the number of records from Q1

 ITP.AddToCurrentValue(Records(Q2))     !! Add the number of records from Q2

 Loop I = 1 To Records(Q1)

   Get(Q1,I)

   !! Do something

   ITP.Update

 End

 Message('Done with Q1, current percent is: ' & ITP.GetCurrentPercent())

 Loop I = 1 To Records(Q2)

   Get(Q2,I)

   !! Do something

   ITP.Update

 End

 ITP.Kill

 

 

See also:

PercentValue
Calculate

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getcurrentpercent_progress.htm