2 arrays for 1 subroutine

 
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP
View previous topic :: View next topic  
Author Message
RFS
-


Joined: 19 Sep 2014
Posts: 1

PostPosted: Fri Sep 19, 2014 11:07 am    Post subject: 2 arrays for 1 subroutine Reply with quote

Hi I'm having trouble getting data from 2 arrays to place in a subroutine:

Code:

<%
Dim delv_array
      delv_array = Split(Request.Form("delv_no"), ",")
      'Iterate through the array inserting tracking numbers for each delivery
      for x = 0 to ubound(delv_array) %>
      <br><br><%response.write(delv_array(x))%><br><br>
         <%for lineitem=0 to uBound(rspartarray) %>
         <br><br><%response.write(rspartarray(lineitem,0))%><br><br>
         <%Call ScomUpdateDate( trim(delv_array(x)),rspartarray(lineitem,0))   
      next
      next
   End if
   %>


The first next returns 1 value as expected but the 2 second next returns all of the array however I only require 1 value at a time, is there away to tell the for next to run once each time rather the then looping through all of the array everytime the first for ubound is run?

Many thanks

RFS
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Classic ASP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group