Hi all,
Is it possible to type cast a String variable into an integer?
I'm tryong with the following code but I'm getting an error on compilation saying inconvertible types.
void yearsWorked(String sWorkYear)
{
int iYrsWorked;
iYrsWorked = (int) sWorkYear;
}
Cheers
Rob
Is it possible to type cast a String variable into an integer?
I'm tryong with the following code but I'm getting an error on compilation saying inconvertible types.
void yearsWorked(String sWorkYear)
{
int iYrsWorked;
iYrsWorked = (int) sWorkYear;
}
Cheers
Rob