Results 1 to 13 of 13

Thread: [RESOLVED][2008]declaring global variables

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2008
    Posts
    74

    Resolved [RESOLVED][2008]declaring global variables

    If i declare a variable inside form1 Public Class Form1 like see below, & then i add a module1 & want to use this same variable inside this module any idea how can i do that

    Code:
    Public Class Form1
        Dim var as string = "bingo"
    Code:
    Module Module1
        Sub _test()
            MsgBox(var)
        End Sub
    End Module
    EDIT: see post 13 for solution sample codes
    Last edited by goldenix; Apr 25th, 2008 at 12:15 AM.

    M.V.B. 2008 Express Edition

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