trids
Programmer
- Feb 23, 2001
- 21
I'm looking for the most generic way of "unformatting" lots of incoming data that may have a variety of different descriptors prepended or appended to the critical numerical portion, without any knowledge of the actual format to undo.
For example ..
Val(sX$) fails when sX$ is ..
12,345.67 = 12
$100 = 0
Format(sX$, "##.##" fails when sX$ is ..
123.45ml = 123.45ml
8h = 8h
Val(Format(sX$, "##.##") fails when sX$ is ..
12,345.67km = 12
$12,345.67 = 0 (unless the regional currency setting matches "$"
Any ideas .. ?
For example ..
Val(sX$) fails when sX$ is ..
12,345.67 = 12
$100 = 0
Format(sX$, "##.##" fails when sX$ is ..
123.45ml = 123.45ml
8h = 8h
Val(Format(sX$, "##.##") fails when sX$ is ..
12,345.67km = 12
$12,345.67 = 0 (unless the regional currency setting matches "$"
Any ideas .. ?