Sign in to follow this  
Guest Skymed

Gvars vs LVars

Recommended Posts

HiJust curious about something. What is the main difference over using G:Var1 variables over L:Myvariable,type? From what I understand there is a limited amount of G:Vars, but L:Vars are unlimited. So why use G:Vars? I'm sure there must be a point to them.

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

G vars are only valid in the gauge where they are defined, whereas L vars can be used from all gauges to interact with each other.Arne Bartels

Share this post


Link to post
Share on other sites

Yes, I use this feature frequently, but there must exist a reason to use g:vars as well? Some/most of the microsoft gauges use g:vars, and some use l:vars.I mean, what does g:vars do that l:vars can't handle, must be something?

Share this post


Link to post
Share on other sites

As Arne pointed out.Gvars are individual gauge specific. That means, they ONLY work in the gauge that they are imbedded in.Lvars can be used in 1 gauge, and then the variable called up to be used in another gauge as well as the gauge that they are in.Clear as mud?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this