Results 1 to 3 of 3

Thread: dynamic array: how do I check if it has been initialized?

  1. #1
    Helger
    Guest

    dynamic array: how do I check if it has been initialized?

    To call for example Ubound for a dynamic array that hasn't been initialized causes an error. Is there a way to check first for that?

    example:


    dim intArray() as integer

    debug.print ubound(intArray) '---> error

    thx,

    Helger

  2. #2
    PowerPoster
    Join Date
    Jun 2001
    Location
    Trafalgar, IN
    Posts
    4,141
    The best I've seen on this one is just trap the error and react accordingly.

  3. #3
    Helger
    Guest
    Thanks I'll use this then - or make sure the array is dimmed.
    Strange they didn't throw in a function for that.

    thx,

    Helger

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