|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Looping over a list
<i><b>Originally posted by : Herb Kaup (herb@infofuel.com)</b></i><br />I am trying to do a simple loop using a variable containing more than one item. New to ASP, but have programmed in Cold Fusion. Variable example: <br />list = "100,200,300"<br />
|
|
#2
|
|||
|
|||
|
<i><b>Originally posted by : Mage (mage@baltnet.ru)</b></i><br />Hi!<br /><br />You specified not a list but a string variable. To make it look like a list:<br /><br />list = array(100,200,300)<br /><br />So in this case you can loop through like this:<br /><br />for i=0 to 2<br /> response.write list(i) & "<br>"<br />next<br /><br />Regards,<br />Mage<br /><br />------------<br />Herb Kaup at 3/29/2001 10:38:51 AM<br /><br />I am trying to do a simple loop using a variable containing more than one item. New to ASP, but have programmed in Cold Fusion. Variable example: <br />list = "100,200,300"<br />
|
![]() |
| Viewing: ASP Free Forums > Programming > .NET Development > Looping over a list |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|