T
TOM
How can I transform this:
myVar = " 7.200" 'spaces are there
to
myNewVar = "7200"
Thanks
Tom
myVar = " 7.200" 'spaces are there
to
myNewVar = "7200"
Thanks
Tom
Tom Ogilvy said:Just to add to the excellent suggestion.
myVar = " 7.200"
? cdbl(myVar)
7.2
is a good thought, but unless it was a typo, it doesn't quite match the
requested results.
myNewVar = "7200"
perhaps
? cdbl(myvar)*1000
7200
with myNewVar dimensioned as String
NickHK said:Tom,
Doesn't that depend on the decimal separator ?
Nick