|
-
Mar 20th, 2002, 02:03 PM
#1
Thread Starter
PowerPoster
Do you know the answer?!
I have a 2 dimensional array like so
Code:
arrField_Data = array(array("ProductCode",strProductCode,rsProd("ProductCode")), _
array("Category",strCategory,rsProd("Category")), _
array("ProductPrice",intProductPrice,rsProd("ProductPrice")), _
array("StockQty",lngStockQty,rsProd("StockQty")), _
array("Qty",lngStockQty,rsProd("Qty")), _
array("OKBO",blnOKBO,rsProd("OKBO")))
But...I need to change this to where I can add ONLY the elements that I want and get different results like so:
Code:
arrField_Data = array(array("ProductCode",strProductCode,rsProd("ProductCode")), _
array("OKBO",blnOKBO,rsProd("OKBO")))
arrField_Data = array(array("ProductCode",strProductCode,rsProd("ProductCode")), _
array("Category",strCategory,rsProd("Category")), _
array("ProductPrice",intProductPrice,rsProd("ProductPrice")), _
array("OKBO",blnOKBO,rsProd("OKBO")))
Any ideas?
thanks
-
Mar 20th, 2002, 02:21 PM
#2
Thread Starter
PowerPoster
nobody knows?
I didn't think it was that hard.
-
Mar 20th, 2002, 02:33 PM
#3
-
Mar 20th, 2002, 02:35 PM
#4
Thread Starter
PowerPoster
this is done is asp
I want to dynamically add additional arrays inside the arrField_Data array.
-
Mar 20th, 2002, 03:02 PM
#5
Thread Starter
PowerPoster
Got It!
Code:
arrField_Data_test = array(array("oldSecAns",hidSec1Ans,hidSec1Ans))
ReDim Preserve arrField_Data_test(ubound(arrField_Data_test) + 1)
arrField_Data_test(ubound(arrField_Data_test)) = array("newSecAns",strSec1Ans,strSec1Ans)
-
Mar 20th, 2002, 04:15 PM
#6
FYI:
ASP Questions propably would be answered faster in the ASP area
-
Mar 20th, 2002, 04:18 PM
#7
Thread Starter
PowerPoster
Originally posted by NotLKH
FYI:
ASP Questions propably would be answered faster in the ASP area
NOT! For this question applies to both VB and ASP.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|