[gameprogrammer] Re: Variable Scope and g , l ?

thank you I appreciate it.  I just wanted to clarify so that I can learn proper 
rather than trial and error, fix problems before I make them, you know what i 
mean?
Alan Wolfe <atrix2@xxxxxxx> wrote:well, i dont do any VB coding but in general, 
local variables are variables
that exist only inside the current function. If you go out of that function
or into another function, they wont exist.

global variables however, are global to all functions.

you might get a book on VB or look for some online tutorials if nobody here
has any VB experience to speak of :P

----- Original Message ----- 
From: "Daniel Greeson" 
To: 
Sent: Wednesday, December 01, 2004 4:38 PM
Subject: [gameprogrammer] Re: Variable Scope and g , l ?


> right now at the moment I am trying to program a 2d RPG in VB.
> Alan Wolfe wrote:Hey Daniel,
>
> what language are you programming in?
>
> ----- Original Message ----- 
> From: "Daniel Greeson"
> To:
> Sent: Wednesday, December 01, 2004 4:30 PM
> Subject: [gameprogrammer] Variable Scope and g , l ?
>
>
> > Hi everyone,
> >
> > Can someone help define Variable Scope to me I have a small idea but
> not much of an ins or outs of it? Also when working with global and loacal
> does a global variable pretty much mean that the variable set ex. PUBLIC
gX
> that the variable X is able to be used throughout the whole code whereas
the
> variable set local ex. Public lX that the variable X would only be used
and
> a portion of the code?
> >
> > Thanks for your time,
> > (programmer trying to learn)
> > ~Draven~
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
> >
> >
> > ---------------------
> > To unsubscribe go to http://gameprogrammer.com/mailinglist.html
> >
> >
>
>
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Take Yahoo! Mail with you! Get it on your mobile phone.
>
>
>
> ---------------------
> To unsubscribe go to http://gameprogrammer.com/mailinglist.html
>
>



---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: