Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

string to integer?

Aaron Levy
Medicated Lately?
Join date: 3 Jun 2004
Posts: 2,147
07-11-2004 20:43
I seem unable to find out how to convert a string to an integer.
Ace Cassidy
Resident Bohemian
Join date: 5 Apr 2004
Posts: 1,228
Re: string to integer?
07-11-2004 21:43
From: someone
Originally posted by Aaron Levy
I seem unable to find out how to convert a string to an integer.


just cast it...

CODE


string str = "999";
integer i = (integer) str;



The variable "i" will have the value 999 after this code segment.

- Ace
_____________________
"Free your mind, and your ass will follow" - George Clinton