how can I convert the valuesof textbox to numeric? here's what I'm doing:
int el = electric.text;
int wb = waterbill.text;
int inet = internet.text;
how can I convert the valuesof textbox to numeric? here's what I'm doing:
int el = electric.text;
int wb = waterbill.text;
int inet = internet.text;
Try this:
int el = [electric integerValue];
int wb = [waterbill integerValue];
int inet = [internet integerValue];
Try this:
NsInteger el = [electric.text integerValue];
NsInteger wb = [waterbill.text integerValue];
NsInteger inet = [internet.text integerValue];