Ask a Question related to Dreamweaver AppDev, Design and Development.
-
-D- #1
looping question
I'm trying to create a loop that splits the individual values in a comma
delimited list and starts the loop at the first value from the list and ends at
the last value. Is this possible? Then take the each value from the list and
plug it in as a variable value in the Request.Form code. So, the request.form
value would be: ddomenuAvalue1, ddomenuAvalue2, ddomenuAvalue3, etc. from the
list. I was trying the following: Dim AlloLoop AlloLoop =
Split(Request.Form('detlsidA'),', ') AlloLoopMax = UBound(AlloLoop) For p =
AlloLoop[0] to AlloLoopMax Dim cmd_AlloUpdate__ddo cmd_AlloUpdate__ddo = ''
if(Request('ddomenuA' + p) <> '') then cmd_AlloUpdate__ddo = Request('ddomenuA'
+ p) Next Is there a way to do this? I'm not sure of the correct way to
accomplish this? Thank you, -D-
-D- Guest
-
Looping .....Help!
HI i want to publish a swf file that only loops 3 times and it has to be published version 5. Anyone have a sneaky piece of code for lopping a fixed... -
XML and looping
Hey guys, I have a XML file as follows: <book> <Name>I Have a Dream</Name> <Price>3.00</Price> <Description>This is a great... -
[PHP] Looping through a list - Newbie question
There are a lot of methods. The most common is using an array: $_SESSION = Array ("1","2","3","4","5"); foreach($_SESSION as $id) { echo $id; }... -
Looping through a list - Newbie question
explode() and then foreach are your friends :) explode() using the comma as your separator and then traverse the array using foreach. ... -
Beginner w/Question on Scrolling Image(S) across the stage (endless looping) (0/2)
Place each image inside its own symbol and then use a Motion tween to move them from one place to the next. Check www.flashkit.com for some very... -
CMBergin #2
Re: looping question
For p = 0 to AlloLoopMax
Request.Form("ddomenuA" + AlloLoop[p]);
Next
If you use AlloLoop[0] in the FOR part, there's no telling where your loop
will attempt to start. Just using p in the request will just append the
counter, not the value in your loop. Also, the way you've written it, only
the last value will ever be used anyway. The loop immediately overwrites
everything.
Perhaps this will help: [url]www.drdev.net/article11.asp[/url]
"-D-" <webforumsuser@macromedia.com> wrote in message
news:cv564i$g62$1@forums.macromedia.com...ends at> I'm trying to create a loop that splits the individual values in a comma
> delimited list and starts the loop at the first value from the list andand> the last value. Is this possible? Then take the each value from the listrequest.form> plug it in as a variable value in the Request.Form code. So, thethe> value would be: ddomenuAvalue1, ddomenuAvalue2, ddomenuAvalue3, etc. from=> list. I was trying the following: Dim AlloLoop AlloLoop =
> Split(Request.Form('detlsidA'),', ') AlloLoopMax = UBound(AlloLoop) For p''> AlloLoop[0] to AlloLoopMax Dim cmd_AlloUpdate__ddo cmd_AlloUpdate__ddo =Request('ddomenuA'> if(Request('ddomenuA' + p) <> '') then cmd_AlloUpdate__ddo => + p) Next Is there a way to do this? I'm not sure of the correct way to
> accomplish this? Thank you, -D-
>
CMBergin Guest
-
-D- #3
Re: looping question
Hi CM, After some hair pulling today...I finally solved the problem. I needed
to ammend the loop as follows: Just a section of the code here: Dim AlloLoop
AlloLoop = Split(Request.Form('detlsidA'),', ') For i = 0 to UBound(AlloLoop) p
= AlloLoop(i) Dim cmd_AlloUpdate__ddo cmd_AlloUpdate__ddo = ''
if(Request('ddomenuA' & p) <> '') then cmd_AlloUpdate__ddo =
Request('ddomenuA' & p) Next This has it working correctly. BTW, just
wanted to extend my thanks to you again for all your help! I'm closing in on
finishing up this application and it is working very nicely. Thanks again!:)
Regards, -D-
-D- Guest
-
CMBergin #4
Re: looping question
No problem. Hopefully you've saved some of your hair. ;)
"-D-" <webforumsuser@macromedia.com> wrote in message
news:cv5nmi$bkb$1@forums.macromedia.com...needed> Hi CM, After some hair pulling today...I finally solved the problem. IAlloLoop> to ammend the loop as follows: Just a section of the code here: DimUBound(AlloLoop) p> AlloLoop = Split(Request.Form('detlsidA'),', ') For i = 0 tojust> = AlloLoop(i) Dim cmd_AlloUpdate__ddo cmd_AlloUpdate__ddo = ''
> if(Request('ddomenuA' & p) <> '') then cmd_AlloUpdate__ddo =
> Request('ddomenuA' & p) Next This has it working correctly. BTW,on> wanted to extend my thanks to you again for all your help! I'm closing inagain!:)> finishing up this application and it is working very nicely. Thanks> Regards, -D-
>
CMBergin Guest



Reply With Quote

