G
G Lykos
Am writing a loop to sum work per task as accessed by the captioned method
in the absence (?) of a Sum method for a collection of TimeScaleData values.
Set up a loop around a simple algorithm of TotalHours = TotalHours +
TimeScaleData(i).value. It fails on a Type Mismatch.
Have tried various types for TotalHours without success. Immediate Watch
shows an empty Set TimeScaleData item value of "", and a non-empty item
value as n.nnnnnnnn. With TotalHours defined as a variant, and the first
return TimeScaleData item of "", TotalHours was set to that.
Does a data value of "" in TimeScaleData(i).value as shown in Immediate
Watch truly signify a string, and if a variant is set equal to it, does that
fix the variant as a string variable for further computations? If so, do
you have to test each TimeScaleData(i) item to see if it's a number if you
are interested in numerical values?
Thanks for any ideas.
George
in the absence (?) of a Sum method for a collection of TimeScaleData values.
Set up a loop around a simple algorithm of TotalHours = TotalHours +
TimeScaleData(i).value. It fails on a Type Mismatch.
Have tried various types for TotalHours without success. Immediate Watch
shows an empty Set TimeScaleData item value of "", and a non-empty item
value as n.nnnnnnnn. With TotalHours defined as a variant, and the first
return TimeScaleData item of "", TotalHours was set to that.
Does a data value of "" in TimeScaleData(i).value as shown in Immediate
Watch truly signify a string, and if a variant is set equal to it, does that
fix the variant as a string variable for further computations? If so, do
you have to test each TimeScaleData(i) item to see if it's a number if you
are interested in numerical values?
Thanks for any ideas.
George