Results 1 to 7 of 7

Thread: Do you know the answer?!

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Cool 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

  2. #2

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    nobody knows?

    I didn't think it was that hard.

  3. #3
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by jesus4u
    nobody knows?

    I didn't think it was that hard.
    I'm sure nobody understand. There are plenty if things that must be variables you've defined....
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    this is done is asp

    I want to dynamically add additional arrays inside the arrField_Data array.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    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)

  6. #6

  7. #7

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    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
  •  



Click Here to Expand Forum to Full Width