Declaring Public Variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The syntax for a public variable seems to be "Public Shared name As type". How AND where do I put these in my AppMain (startup module) so the can be used by two different forms

Thanks
John
 
Hi,

Just place it in the general declarations part of the module.

Module appMain
Public name As String

Public Sub main()
Application.Run(New Form1)
End Sub
End Module

Ken
---------------
 
Hi John,

Same thoughts as Bill, I see our group is growing, I thought it was only OHM
and me and now there is again one. (In fact it are more, however we both do
not use the application start in VB.net, I am not sure if Bill means that as
well)

Cor
 
Back
Top