View Single Post
  #1 (permalink)  
Old Oct 30th, 2007, 14:27
balaakrs balaakrs is offline
Junior Member
Join Date: May 2007
Location: india
Age: 24
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to balaakrs
Unhappy guidance in accessing variables

hi guys,
I want to get students info from asp page. and i done it with ease using loadvarsand sendandload function.
variable that's passed from asp page will be in the format

sname*sep*sage*sep*sclass*next*sname2*sep*sage2*se p*sclass2*next*sname3*sep*...


and so on consider upto 5 students details

now using split function i did as below to create an array that contains every students details seperately

mysplitter:Array=aspvariable.split("*next*);

upto this i got it finei have five arrays named student1 student2 student3 student4 student5.
i tried to split the mysplitter arrays values as follows. but it didn't work

for(i=0;i<mysplitter.length;i++){
_level0["student"+i]=mysplitter[i].split("*sep*);
}

i tried to make for loop that will split up the each students name age class and stored in respective student variable.

i think this is an easy process but i can't able to find a way to achieve this. i also want to retrieve this arrays named student in future coding. how can i do this . please help me as soon as possible.
Reply With Quote