Hi mhirt,
With Float.parseFloat(?10.0?), I have the following message
Expression of Var.var1 is invalid : Error on Float.parseFloat(?10.0?) => Type mismatch : cannot convert from float to String
Thanks
Hi all,
I have a HOME PHONE NUMBER as a STRING that I want to only get the first 3 digits (AREACODE) of and then want to convert to an INT..
Right now im using the following and getting an error:
I create a variable as so...
StringHandling.LEFT(row1.homePhoneNum,3) which is called VAR.SDHAREA(STRING)
THEN...
I map it to my output and try to convert it to an int as follows...
Integer.parseInteger(VAR.SDHAREA)
Anyone have any ideas on how to accomplish this?
Any help would be greatly appreciated!
-Chris
Hi chrish:
JDK API (
http://java.sun.com/j2se/1.5.0/docs/api/) :
Class: java.lang.Integer
static int parseInt(String s)
Parses the string argument as a signed decimal integer.
you should try Integer.parseInt(VAR.SDHAREA)