Convert number stored as text to number

Questions and answers on how to use XLSReadWriteII 3/4/5.
Post Reply
grchristin
Posts: 3
Joined: Sat May 29, 2010 3:53 am

Convert number stored as text to number

Post by grchristin »

How can I convert a number stored as text to a number. I can do it in Excel but can't figure out a simple way to do it using XLSReadWriteII4.

For now I'm just using

XLS.Sheet[0].AsFloat[i,z] := StrToFloat(StringReplace(XLS.Sheet[0].asString[i,z], ',','',[rfReplaceAll]));

and it works.

I wonder it there's another way.
Post Reply