Results 1 to 3 of 3

Thread: Arrays

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2004
    Posts
    70

    Resolved Arrays

    Hi,

    I need to use an array such as

    Dim array() as string

    later on if I do:

    array(1)="john"

    says it doesn't work, I think it is because I have to initialize it. I've tried doing:

    Dim array() as string = {}

    but then when i try array(1)=... it says I'm out of bounds.

    How can I initialize an array with empty elements not knowing how many elements I will have (I could guess this if the other option is too complicated).

    Thanks in advance
    Last edited by nacho2; Dec 27th, 2004 at 03:12 PM.

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