by David Le Mesurier
I got tired of trying to remember all the time how to calculate the % value
to pass to the thermometer form, yes I know it's easy, but late night coding
and a few bottles and one makes mistakes easier then normal.
I have altered the Update code at DEV level in my classes and modified the
code from:
LPARAM stnPercent,stcMessage
to
LPARAM stnPercent,stcMessage,stnTotal,stnNow
IF stnPercent = -1
stnPercent = stnNow/(stnTotal/100)
ENDIF
DODEFAULT(stnPercent,stcMessage)
If you pass the total number of records as stnTotal and the current record
number as stnNow then it will calculate it's own percentage.
You can still use it as normal simply by passing a value of not -1 as the %
parameter.
David Le Mesurier
ProMatrix MVP 2005
ProSysPlus MVP Life