Results 1 to 4 of 4

Thread: Public Arrays?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    29

    Unhappy

    Hello.

    I need a little assistance. I have a prgram with two forms. I want to declare:

    Public TargIndex(0 to 2) as interger

    VB keeps telling me that I cannot declare arrays as Publics.

    Is there any (simple) way I can work around this?

    Thank you in advance.

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Put your declare in a bas module
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3
    Guest

    Thumbs up HeSaidJoe is dead right....damn

    Create a bas and call it Start.bas or whatever, and create a procedure in it called Main(). Good place to set up all public/global variables, calls etc.

    Then goto the Project->Properties and set the starting module as Main. Cool and easy, just show your first window from within the module.

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    29

    Thumbs up

    Perfect! Thank you Much!

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