Sign in to follow this  
Guest knivpekka

Multiple cases impossible?

Recommended Posts

Is it not possible to have more than one "case" statement in a gauge? I use a case function with a rotating switch to change the colors on a radar screen grid. When I try to add a second switch to control another part of the radar in a similar way, I crash to desktop. This works fine, but if I add another one in the same gauge:I invariably get a CTD. Am I doing something wrong here?/toto

Share this post


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

Maybe this?There was no % at the closing bracket of the Color string.Arne Bartels

Share this post


Link to post
Share on other sites

Thanks Arne! However, it does not work, now none of the lines show up. It doesn't crash anymore, though. I thought a closing % was unnecessary? I nicked the syntax from Steve Hanley's excellent HUDILS gauge, it works perfectly there (he only has one case function in that gauge though).Have you ever used two case functions in one XML gauge?Cheers /toto

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