The Daily Click ::. Forums ::. Klik Coding Help ::. String Parser Problem
 

Post Reply  Post Oekaki 
 

Posted By Message

DEC Stuff



Registered
  07/07/2003
Points
  1348
21st March, 2004 at 18:10:00 -

I've just started using the string parsar.

I am using it to store values X and values Y like this.

X Values {123, 148, 159, ect....}
Y Values (231, 1233, 123, 1232}

You know, something like that. I am basically saving the co-ordinates of objects which will be transfered over frames. So like element 1 of X values is the x position of frame one, and element 1 of y values is the y position of frame 1.

Problem is, I use "set element" and the delimitor is ",". Whenever I set the element it erases all the others. I am outputting the entire string to the screen, but I can never get more than one element to display at a time...or save at a time. This is what it looks like.

Frame 1 might be(X):
(,123,,,,,)
and Frame 2 would be:
(,,148,,,,)

Like that.

Any ideas?

 
http://www.decstuff.net

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
21st March, 2004 at 19:19:51 -

I don't understand why you don't just create a string with the commas in it? That makes a lot more sense.

 
n/a

DEC Stuff



Registered
  07/07/2003
Points
  1348
21st March, 2004 at 20:14:15 -

Thats what I am doing. I have to set the elements at different times, and I don't know how to output 2 elements at the same time.

 
http://www.decstuff.net

DEC Stuff



Registered
  07/07/2003
Points
  1348
21st March, 2004 at 20:15:46 -

I have to set it in an array too...Cause it's like a movie dealy.

 
http://www.decstuff.net

DEC Stuff



Registered
  07/07/2003
Points
  1348
21st March, 2004 at 20:38:05 -

GREAT NEWS! I figured it out. Thanks anyways.

 
http://www.decstuff.net
   

Post Reply



 



Advertisement

Worth A Click