about global variable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • praveeen
    New Member
    • Dec 2007
    • 1

    about global variable

    i want to know about declaration of global variable
  • creative1
    Contributor
    • Sep 2007
    • 274

    #2
    You can add a module in your project and then declare variables there
    like this

    Public Orders As New ADODB.Recordset
    Public cat As String
    Public Qty As Long

    These variable are global

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      You need to declare public variables in the module (.BAS file).

      Comment

      Working...