Hi,
The supplied metric report adds an "m" to the offset value in the report
table and not to the Chainage value. I expected that both columns would be
consistent in their use of the "m" I also expect the imperial reports will
suffer similar inconsistencies, but haven't checked
' g_oPointDataArr(nOffsetIndex) = FormatDistSettings(offSet) ' This
code returns the offset string with an m
I tried the obvious
g_oPointDataArr(nOffsetIndex) = Format (offset, "#0.00"), but for some
reason I can't explain the program would not accept the "Format" function.
I defined a new string variable sOff and used the following in lieu of the
line above to get a credible report.
sOff = FormatDistSettings(offSet)
sOff = Left$(sOff, Len(sOff) - 1)
If InStr(sOff, ".") = Len(sOff) - 1 Then
sOff = sOff & "0"
End If
g_oPointDataArr(nOffsetIndex) = sOff
--
Laurie Comerford
CADApps
www.cadapps.com.au