My Array Problem!!!!!!!!!

Results 1 to 2 of 2

Thread: My Array Problem!!!!!!!!!

  1. #1
    Sachin Guest

    Default My Array Problem!!!!!!!!!

    I have a problem regarding array.I select a link on first page.Some items display regarding that link.I fill the items selected on the display page in the array on next page.Now when i select another link on the first page and repeat the above procedure.But the problem is that when i display the array, only the items which are selected after clicking last link are displayed.previous items are not displayed.I have tried to use session array also.But i am not getting how to remember the last array bound.From which i want to add the element and increase the array dynamically..<BR>Is There a solution to this problem<BR><BR>~sachin

  2. #2
    Join Date
    Dec 1969

    Default RE: My Array Problem!!!!!!!!!

    &#039;Declare a dynamic array<BR><BR>Dim varAnArray()<BR><BR>&#039;Decide how big it&#039;s going to be<BR><BR>ReDim varAnArray(dim1,dim2)<BR><BR>&#039;Now it needs to be bigger<BR><BR>ReDim Preserve varAnArray(dim1,dim2+5)<BR><BR>&#039;And so on.Preserve keeps the previous data as long as you don&#039;t make the dimension smaller or specifically empty or overwrite the array.

Posting Permissions

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