Ok... I guess my brain has finally gone on vacation without me today. I have extracted 2 fields from a website and I get this string
vData = "Amount Owed [EXTRACT]$125.00[EXTRACT]
vData
was declared as an array (string).
I split vData
on [EXTRACT]
and I end up with 2 string variables like this:
varA = "Amount Owed"
varB = "$125.00"
To parse varB
, I use
Dim varC as Currency
varC = val(varB)
I want to use varC
in an If
statement:
If Val(VarC) <> 0 Then
I was expecting varC
to be 125 but when I look at varC
is 0. I can't figure out why varC
= 0 and not 125.