Jump to content
The simFlight Network Forums

Calculator Code on Multiple Lines?


Recommended Posts

FSUIPC7 calculator code is a wonderful capability!  The examples I've seen always express the XML code on a single line. XML code can get "long" ( which I assume is why up to 1023 characters can be used) and I was wondering if there might be a way to use multiple lines like in the example below. What I've tried has not worked.

                   ipc.execCalcCode (" (L:AP_PFT_COUNTER, number) 21 >=
                    if{ 1 (>L:AP_PFT_POWER,bool) 0 (>L:AP_PFT_COUNTER_ENABLE,bool) 0 (>L:AP_PFT_COUNTER, number) }  
                       (A:CIRCUIT ON:9,bool) 0 ==
                        0 (>L:AP_PFT_POWER,bool)
                        0 (>L:AP_PFT_COUNTER, number)
                        0 (>L:AP_PFT_COUNTER_ENABLE,bool)
                        0 (>L:AP_MEM,bool)
                        0 (>L:YAW_DAMPER_MEM,bool)
                       (A:AUTOPILOT FLIGHT DIRECTOR ACTIVE,Bool) 1 ==
                        if{ (>K:TOGGLE_FLIGHT_DIRECTOR) }
                         }  }  ") 

Link to comment
Share on other sites

7 hours ago, John Dowson said:

No - the calculator code must all be on one line, currently up to a maximum of 1024 bytes. It is not possible to change this for various reasons.


Ok, thanks for the info John. I wasn't asking you to change anything. I thought there might be a special EOL character or string concatenation character that would work with the current implementation.

Thanks again for this calculator XML code capability -- very useful!


Link to comment
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
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.