Problem manipulating arrays

Results 1 to 2 of 2

Thread: Problem manipulating arrays

  1. #1
    Join Date
    Dec 1969

    Default Problem manipulating arrays

    I need to be able to handle arrays within the Application or session objects with symbolic values. In other words, I need to be able to loop through an array in the application object from any given asp page. <BR><BR>I found a way around this<BR><BR>dim myArray(20)<BR>myArray = Application("targetArray") <BR><BR>but i need to be able to copy the new array (myArray) back to the array in the application object. How do i do this? I know Application("targetArray") = myArray does not work. The code is executed, but nothing happens.<BR><BR>respond here or send me an email to <BR>Thankyou

  2. #2
    Join Date
    Dec 1969

    Default ASPFAQs, category Arrays

    The link to the ASPFAQs is at the top right corner of most every page on this site, including the one you are reading now.<BR><BR>Basically, the "trick" is to use ReDim instead of Dim.<BR><BR>But see that FAQ.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts