Well, it's encouraged me to delve further. I have found that instead of using "execute_calculator_code", it is far more efficient to use these:
check_named_variable -- to get the ID, also checks if variable exists.
then using the ID:
get_named_variable_value to read the setting, and
set_named_variable_value to write it.
One thing I should point out though is that -for me at least- occasionally in FS9 this list of L:vars will include some in a/c that are not loaded, and have not been loaded during the session. No one, including Susan was ever able to explain how or why this happened...
At present I'm not considering backtracking to FS9. All my new code is for FSX / ESP. I have merged ESPIPC and FSUIPC4 into one module, FSUIPC4, which works in both FSX and ESP, and which is installed into either or both by the same installer.
Here's a typical list, from the Cessna 172, using a new facility I've added to log panel local variables. I've no idea what most of them are !




:
616812 Aircraft="Cessna Skyhawk 172SP Paint1"
616812 Panel includes these local variables:
616812 L:map_ZoomStep = 0.000000
616812 L:map_ZoomFactor = 0.000000
616812 L:MapInit = 0.000000
616828 L:LayerAirports = 0.000000
616828 L:LayerAirspaces = 0.000000
616828 L:LayerTerrain = 0.000000
616828 L:LayerVORs = 0.000000
616828 L:LayerILSs = 0.000000
616828 L:LayerNDBs = 0.000000
616828 L:LayerLowAirways = 0.000000
616828 L:LayerTags = 0.000000
616828 L:LayerCompass = 0.000000
616828 L:LayerIntersections = 0.000000
616828 L:LayerRangeRings = 0.000000
616828 L:VehicleObjectDetail = 0.000000
616828 L:Filter = 0.000000
616828 L:LastLandingLightPosition = 0.000000
616828 L:EmergencyThrottleInUse = 0.000000
616828 L:Engine1ThrottlePosition = 50.000000
I'm considering expanding the FSUIPC4 macro facilities with the ability to write to named L: variables, thus providing a way of assigning to buttons and keypresses. Doesn't look too hard to incorporate into the current facilities.
Thanks & Regards
Pete