Results 1 to 3 of 3

Thread: Public Declaration

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2002
    Location
    Milton Keynes UK
    Posts
    27

    Public Declaration

    How do you declare a variable (or sub) as public so that it can be seen accross all the project. I presently declare public variables within the class of each form - i then can't see them from different forms.

    THanks

    John

  2. #2
    Member
    Join Date
    May 2001
    Posts
    39
    Use a shared member (variable or method). Is part of class instaed of object.

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    You can also still use Modules which work like they did in VB6.

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