Add does not work
Add does not work
(OP)
Hi, not sure why this is not adding. Substract, divide and multiply all work but does not add, instead it puts the numbers together
Trim(Sess0.Screen.GetString(12, 59, 10)) + Trim(Sess0.Screen.GetString(14, 39, 12))
thanks!
Trim(Sess0.Screen.GetString(12, 59, 10)) + Trim(Sess0.Screen.GetString(14, 39, 12))
thanks!
RE: Add does not work
Convert both string values to integer or some other numeric type. The PLUS sign will concatenate strings, while it seems that the other operators will force a string to number conversion prior to performing the math.
Skip,
Just traded in my OLD subtlety...
for a NUance!
RE: Add does not work
WorksheetFunction.Sum(Trim(Sess0.Screen.GetString(12, 59, 10)), Trim(Sess0.Screen.GetString(14, 39, 12)))
RE: Add does not work
CODE
Skip,
Just traded in my OLD subtlety...
for a NUance!
RE: Add does not work