RE: Ripping variables out from a string??
for example
code: var strCommand = "#DoThat;130;104";
var arrCommand = strCommand.split(";");
switch (arrCommand[0])
{
case "#DoThat":
//use arrCommand[1] to get 130 and arrCommand[2] to get 104
break;
}
This post was edited on 07-07-2006 at 09:15 PM by Dhaya.
Godamn JScript ! I HATE you ! ... but I love you so much <3
|