Hi, programmers!
there's global and local variables ? I've heard about common variables....what is it ?
Does anybody know? if so - please - share your knowledge!
Thanks in advance !
vedro-compota
33
Posting Whiz
Recommended Answers
Jump to PostHi there vedro-compota,
Variables exist within the scope of their creation.
Make a variable within a class, and that's its scope.
Make a variable within a method, and that's its scope.
So make it within the program, but outside of any one class.
If you make it in the …
Jump to PostGlobal variable is variable that is visible to all methods in class. In VB they can be visible to all classes.
All 7 Replies
Mitja Bonca
557
Nearly a Posting Maven
vedro-compota
commented:
++++++++
+1
vedro-compota
33
Posting Whiz
jugosoft
25
Junior Poster in Training
vedro-compota
commented:
+++++++
+1
Mitja Bonca
557
Nearly a Posting Maven
vedro-compota
33
Posting Whiz
Mitja Bonca
557
Nearly a Posting Maven
vedro-compota
33
Posting Whiz
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.