solomoonor wrote: > hello there, I am visualizing a flow of data. I have a problem with > the array that stores the data. I use shit() to keep the array size > not exceed the size. The data are dynamically added to the array. when > it reach the fixed size, if at that moment, there are more than two > data are added to the array and exceed the size, then clash. > I use > while (node.length>= fixedsize) > { > node.shit(); > } > I think if the node.length minus fixedsize is larger than 1, it will > loop until it becomes smaller than fixedsize. So new data will be able > to add to the array. > however, it doesnt work. anyone got any clue?
If node is an array object, the method name you're looking for is shift(), not shit(). -- Robin Berjon Research Scientist Expway, http://expway.com/ ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/