|
Author |
Topic: String to int (Read 10988 times) |
|
svela
|
String to int
« on: Jan 5th, 2003, 8:50pm » |
|
hi! how can i convert String to int? example: String a = "17";
|
|
|
|
Glen Murphy
|
Re: String to int
« Reply #1 on: Jan 5th, 2003, 10:26pm » |
|
String a = "23"; int i = Integer.parseInt(a);
|
|
|
|
svela
|
Re: String to int
« Reply #2 on: Jan 5th, 2003, 10:37pm » |
|
didn't work: "load: project013 can't be instantiated"
|
|
|
|
Glen Murphy
|
Re: String to int
« Reply #3 on: Jan 6th, 2003, 3:05am » |
|
That sounds more like a Proce55ing error - start a new sketch, cut and paste that code it (add a println(a) at the end), and it should run.
|
|
|
|
svela
|
Re: String to int
« Reply #4 on: Jan 6th, 2003, 12:31pm » |
|
it didn't work..
|
|
|
|
fry
|
Re: String to int
« Reply #5 on: Jan 6th, 2003, 4:03pm » |
|
where does the "load: project013 can't be instantiated" message show up? i've never had p5 talk to me like that before. and the only thing in your code is the two lines glen suggested? (no draw() no setup() etc)
|
|
|
|
svela
|
Re: String to int
« Reply #6 on: Jan 7th, 2003, 9:41pm » |
|
it show up in IE, and my code worked well before i added that codeline
|
|
|
|
pollux
|
Re: String to int
« Reply #7 on: Apr 25th, 2003, 1:09am » |
|
late thanks, for you saved me from madness! (as in: it worked for me...)
|
pollux | www.frwrd.net
|
|
|
catalog
|
Re: String to int
« Reply #8 on: Mar 3rd, 2005, 11:54pm » |
|
on Jan 5th, 2003, 10:26pm, Glen Murphy wrote:String a = "23"; int i = Integer.parseInt(a); |
| Still useful help! Thanks...
|
|
|
|
|