VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,779 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Public Module GlobalVariables
Public gDataGridShowing
Public gDatabase As String
```End Module
Public Class Form1
gDatabase = "ganswind" **<<< error "Declaration expected"**
Function HideMenuPoints(ByVal MenuNumber)
.
.
.
I guess I am placing things in the wrong place?
( There is no such things as a stupid question, .... )
Try this:
Module GlobalVariables
Public gDatabase As String = "ganswind"
End Module
Or this:
Public Class Form1
Sub New()
InitializeComponent()
GlobalVariables.gDatabase = "ganswind"
End Sub
(Depending on necessities).