Results 1 to 4 of 4

Thread: how to declara public array variable?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    9

    Red face how to declara public array variable?

    Hi,

    Anyone could tell me how to declara

    Public array(5) as integer

    properly? as it was not allowed to do it.

    Thanks

    gogo


  2. #2
    Frenzied Member ober0330's Avatar
    Join Date
    Dec 2001
    Location
    OH, USA
    Posts
    1,945
    I'm not sure what you're doing wrong... this is straight from MSDN:

    To create a public array, you simply use Public in place of Dim:

    Public Counters(14) As Integer
    Public Sums(20) As Double
    what version of VB are you using? I'm using 6.0 SP5
    format your code!! - [vbcode] [/vbcode]

    ANSWERS CAN BE FOUND HERE!!

    my personal company

  3. #3
    Frenzied Member ae_jester's Avatar
    Join Date
    Jun 2001
    Location
    Kitchener Ontario Canada Earth
    Posts
    1,545
    You have to declare public arrays in a code module

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2002
    Posts
    9
    Thanks for both of your kind help.

    gogo

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