how to clear an array in vbscript-VBForums
Results 1 to 2 of 2

Thread: how to clear an array in vbscript

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2006
    Posts
    66

    how to clear an array in vbscript

    how to clear an array in vbscript

    can we use this method


    Array.clear()


    or we have any other method

    please reply me soon guys.....

  2. #2
    Fanatic Member aconybeare's Avatar
    Join Date
    Oct 2001
    Location
    UK
    Posts
    769

    Re: how to clear an array in vbscript

    Use Erase:

    Code:
    Dim args(2) 
    args(0) = "1" 
    args(1) = "2" 
    args(2) = "3" 
    Erase args ' clear the array
    Cheers Al

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.