Readable Variables

where do i declare an integer so that it can be read by all subs and forms
...
the best way i have found to do this so far is to have the value flash up on the screen and then go away after being read by another sub




Answer this question

Readable Variables

  • Dave Singleman

    You can also add a new module to your project, and make public variables.



    Module Module1
        Public some_global_var As String

    End Module

     



  • Bill Chadwick

    Public Class Form 1

    Protected Number as Integer = 0


    Private
    Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

       'whatever

    End Sub

    End Class



  • ManiD

    Thanks for the help.Big Smile


  • Readable Variables