I'm looking for a way to eliminate many unwanted global variables. Any suggestions? I'm relatively familiar with the basics of VB but not to a distant extent.
thanks.
iskivgs
0
Newbie Poster
Recommended Answers
Jump to PostThe question is, Why are they global? Are they only used in one place? Are they used in several modules, forms, etc? If you have to maintain a value to be used in several places then it needs to be a public variable. If used in one place then where …
Jump to PostIf they are global to a form then they are declared as private in the form and are not global.
as inPrivate x As String = ""
If you have them defined as:
Public x As String = ""
then they are global …
All 5 Replies
waynespangler
63
Posting Pro in Training
iskivgs
0
Newbie Poster
waynespangler
63
Posting Pro in Training
iskivgs
0
Newbie Poster
waynespangler
63
Posting Pro in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.