Results 1 to 5 of 5

Thread: VB6 - accessing array data publically

  1. #1
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts

    Question VB6 - accessing array data publically

    I have an array in one form that I want to use in another, but I can't declare an array publically, so what's the best way of making the data in the array accessible to other forms/modules/etc.

    Cheers.
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  2. #2
    Pixel Abuser Spunkey's Avatar
    Join Date
    Nov 2003
    Location
    Milton Keynes
    Posts
    1,523
    Thanks
    0
    Thanked
    0 times in 0 posts
    you can try creating a module and create a function in that which will return the array filled with whatever youre after.

    how come you cant declare it publicly though?

  3. #3
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts
    Why:

    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

  4. #4
    Pixel Abuser Spunkey's Avatar
    Join Date
    Nov 2003
    Location
    Milton Keynes
    Posts
    1,523
    Thanks
    0
    Thanked
    0 times in 0 posts
    eeeenteresting pinky.

    i would have a play with vb myself, but i havent got it on this machine

  5. #5
    HEXUS webmaster Steve's Avatar
    Join Date
    Nov 2003
    Posts
    14,283
    Thanks
    293
    Thanked
    841 times in 476 posts
    OK, so I read that error message one more time and noticed "object module."

    So, in the IP_UTILS module I'm using (a nice little freeware module for ping utilities and such) I stuck the declaration in there - as it's not an object module.

    Kablamo! It works.

    Cheers anyway guys, lol.
    PHP Code:
    $s = new signature();
    $s->sarcasm()->intellect()->font('Courier New')->display(); 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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