Results 1 to 10 of 10

Declare global variable in Application level

Threaded View

  1. #1
    Registered User
    Join Date
    11-10-2008
    Location
    India
    Posts
    35

    Thumbs up Declare global variable in Application level

    Hi,
    I need to declare a global variable in Application level not Module level.
    I have declare a variable in Module1 and then Module2 with same name then complile it and get success. That means there has two variable with same name in different Module. I think this was not a proper global variable declaration by which I can allow to declare only one variable in all Module, Class every where. I have used code as below -

    Option Explicit
    Public MyID As Integer
    Thanks,
    Suman
    Last edited by suman.biswas; 09-18-2009 at 04:31 AM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1