Link to home
Start Free TrialLog in
Avatar of Mehram
MehramFlag for Pakistan

asked on

VB.Net Global Variable

I have create a module namely globalvariable and want to create a global variable namely SQL type string when i am doing this it is showing errro on Global:

global SQL as string

I also want to use this variable on my form like this

SQL = "select * from userstable where username ='" & TextBox1.Text & "'"

in above statement it is showing error on SQL

Please guide how to create global variable and how could we call it on any form.

Rgds. Mehram
Avatar of suprapto45
suprapto45
Flag of Singapore image

Hi again,

What is the error message?

David
ASKER CERTIFIED SOLUTION
Avatar of suprapto45
suprapto45
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad I could help again ;).

David