Results 1 to 3 of 3

Thread: Where do I declare my sub main () at?

  1. #1

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Post

    I need to use a Sub Main() to initiate which form my program needs to start according to the user's preferences. Do I declare the Sub main function in the General Declarations section or am I suppose to do it in a .Bas module?

  2. #2
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923

    Post

    In a bas module...make sure your startup form is set to Sub Main() in the Project Properties dialog as well.

    Public Sub Main()
    ...
    Your code
    ...
    End Sub

  3. #3

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Post

    Thank you chrisjk.

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