lparameters tcValue local lcValue, ; lnI, ; lnChar #define ccPOSITIVE 'C' lcValue = '' for lnI = 1 to len(tcValue) lnChar = asc(substr(tcValue, lnI, 1)) lcValue = lcValue + right(transform(lnChar, '@0'), 2) next lnI lnValue = val(left(lcValue, len(lcValue) - 1)) * ; iif(right(lcValue, 1) = ccPOSITIVE, 1, -1) return lnValueDoug