- Messages
- 1,564
- Country

Bloody hard to remember the rules when it comes to this part of XML ...
Based on the value of an L:Var, I want to initiate one of four events in a mouse click.
(L:TestVar, enum) can be 0, 1, 2, or 3
If 0, I want, in essence, <Click> (>K:COM1_RADIO_WHOLE_INC) </Click>
If 1, <Click> (>K:COM2_RADIO_WHOLE_INC) </Click>
If 2, <Click> (>K:NAV1_RADIO_WHOLE_INC) </Click>
If 3, <Click> (>K:NAV2_RADIO_WHOLE_INC) </Click>
I'm playing around with a radio that has one tuning knob only, but can tune different radios depending on the L:TestVar number. Seems I should be able to do this in one <Click> line using {case} but I haven't gotten it right yet.
Additionally, I tried {Case} is a string construction with <Click Event="{Case} code goes here" /> also without luck.
How to do?
Wiki time!
Bob
Based on the value of an L:Var, I want to initiate one of four events in a mouse click.
(L:TestVar, enum) can be 0, 1, 2, or 3
If 0, I want, in essence, <Click> (>K:COM1_RADIO_WHOLE_INC) </Click>
If 1, <Click> (>K:COM2_RADIO_WHOLE_INC) </Click>
If 2, <Click> (>K:NAV1_RADIO_WHOLE_INC) </Click>
If 3, <Click> (>K:NAV2_RADIO_WHOLE_INC) </Click>
I'm playing around with a radio that has one tuning knob only, but can tune different radios depending on the L:TestVar number. Seems I should be able to do this in one <Click> line using {case} but I haven't gotten it right yet.
Additionally, I tried {Case} is a string construction with <Click Event="{Case} code goes here" /> also without luck.
How to do?
Wiki time!
Bob


