Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 12:50 PM
Tim:..
Guest
 
Posts: n/a
Default Loop D Loop

Can someone please tell me what I'm doing wrong here

I'm trying to give the variable sStart a new name on each loo
EG
sStart1 = value1
sStart2 = value

however the following piece of code doesn't work

Thank

set oNodes=xml.selectNodes("/Project/Tasks/Task/Start"
for each oNode in oNode
sStart=oNode.tex
response.write("<BR>"
for i=0 to 10
response.Write(sStart(i)
nex
next
  #2  
Old July 19th, 2005, 12:50 PM
Maarten
Guest
 
Posts: n/a
Default Re: Loop D Loop

You can't use sStart as singel variable and as list.
use myStart or something else


  #3  
Old July 19th, 2005, 12:50 PM
Tim:..
Guest
 
Posts: n/a
Default Re: Loop D Loop

Something like this you mean

I get a Type mismatch: 'myStart

Any ideas? Thanks for the response but I could use a little more detailed discription

Thank

set oNodes=xml.selectNodes("/Project/Tasks/Task/Start"
for each oNode in oNode
sStart=oNode.tex
response.write("<BR>"
for i=0 to 10
myStart(i) = sStar
response.Write(myStart(i)
nex
next
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles