February 29, 201214 yr "One finger" the Caps Lock key. All lower case would be more acceptable than, what we consider, YELLING...Don
February 29, 201214 yr Author "One finger" the Caps Lock key. All lower case would be more acceptable than, what we consider, YELLING...DonI ONLY HAVE ONE ARM AO
February 29, 201214 yr Author The { and } symbols are components of the if{ } els{ } constructs. For every open brace { there must be a closing brace }.Note that blank spaces are absolutely critical for these constructs. Any error, no matter how seemingly insignificant can cause the entire gauge to fail to load at all. It is NOT the least bit forgiving! :(Correct syntax is: if{ (xxxxx) } els{ (yyyyy) } Note there is no space between if and the opening brace. There must be a blank space following the opening brace. Note there is no space between els and the opening brace. There must be a blank space following the opening brace. Note there must be blank spaces before and after each closing brace! XML is not a "programming language" per se, but it does follow most of the rules of any programming language. If/else constructs may be "nested" as long as the above four rules are adhered to firmly. (Condition 1) if{ (DoThis 1) } els{ (Condition 2) if{ (DoThis 2) } els{ (DoThis 3) } } } IS THE LAST } NECESSARY?hi,did you see my pm?NOTE, I USE ALL CAPS. SEE ABOVETHANKS FOR THE SUGGESTION ABOUT USING NOTEPAD++ I HAVE HAD IT FOR YEARS AND KEEP IT UP TO DATE BUT HAVE BEEN USING NOTE TAB LIGHT FOR SO LONG, I WAS HESITANT TO CHANGE. BUT, I WILL 'NOW' WHEN EDITING XML FILES. THE { & } CHARACTERS HAVE GIVEN ME MORE F$I!G PROBLEMS THEN I CARE TO MENTION HA!....ANYWAY, SOME PEOPLE I KNOW WILL NOT ACCEPT CHANGE....I'M NOT ONE OF THEM.I FINALLY INCORPORATED THE 4 SOUNDS IN AN ALREADY AUTOLAND GAUGE THAT I HAVE MODIFIED OVER THE YEARS. I WAS AT FIRST TRYING TO MAKE A SEPARATE GAUGE THAT WOULD BE CALLABLE FROM ANY OTHER GAUGE. I THINK WITH THE GOOD SUGGESTIONS THAT YOU GUYS HAVE GIVEN ME, I WILL GO BACK AND FINISH THE GAUGE THAT I STARTED.THANKS Edited February 29, 201214 yr by LKL
March 1, 201214 yr Hi,Was also interested in the 4 sounds.Can you send them if possible to:[email protected]Thanks, Jan "Beatus ille qui procul negotiis..."
March 1, 201214 yr Moderator IS THE LAST } NECESSARY?Yes. The last } closes the first if{ expression!There should always be an even number of { and } braces in any XML expression, since they are always paired with one another... :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
March 1, 201214 yr Author Yes. The last } closes the first if{ expression! There should always be an even number of { and } braces in any XML expression, since they are always paired with one another... :( I MUST BE MISSING SOMETHING, BUT(Condition 1) if{ (DoThis 1) } <==SATISFIED FOR FIRST if{ els{ (Condition 2) <==NOT SATISFIED UNTIL LATER if{ (DoThis 2) } <==SATISFIED FOR SECOND if{ els{ (DoThis 3) } <==SATISFIED FOR SECOND els{ } <==SATISFIES THE FIRST els{ } <== WHAT IS THIS ONE FOR? QUOTE: There should always be an even number of { and } braces in any XML expression, since they are always paired with one another. I COUNT 4 EACH { .....AND 5 EACH } ??
March 1, 201214 yr Looks like an extra one to me too... :) Edited March 1, 201214 yr by tgibson Tom Gibson CalClassic Propliner Page
March 2, 201214 yr Moderator Okay! I've edited my post to remove the extra } from the example...Somehow my eyes must have failed me again. :( (Condition 1) if{ (DoThis 1) } els{ (Condition 2) if{ (DoThis 2) } els{ (DoThis 3) } } For some reason this new forum editor makes a complete hash out of blank spaces and indenting, so the elegant formatting from Visual Studio got lost in the copy/paste operation. :( Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
March 2, 201214 yr "Qui abscondit scelera sua non dirigetur qui confessus fuerit et reliquerit ea misericordiam consequetur..." Jan "Beatus ille qui procul negotiis..."
March 3, 201214 yr Moderator :( Roger that, Jan! Wilco... Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
Create an account or sign in to comment