FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   String to int
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: String to int  (Read 10988 times)
svela

WWW Email
String to int
« on: Jan 5th, 2003, 8:50pm »

hi!
 
how can i convert String to int?
 
example:
String a = "17";
 
Glen Murphy

WWW Email
Re: String to int
« Reply #1 on: Jan 5th, 2003, 10:26pm »

String a = "23";
int i = Integer.parseInt(a);
 
svela

WWW Email
Re: String to int
« Reply #2 on: Jan 5th, 2003, 10:37pm »

didn't work:
 
"load: project013 can't be instantiated"
 
Glen Murphy

WWW Email
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

WWW Email
Re: String to int
« Reply #4 on: Jan 6th, 2003, 12:31pm »

it didn't work..
 
 
fry


WWW
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

WWW Email
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

WWW Email
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...
 
Pages: 1 

« Previous topic | Next topic »