Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Reading a P variable in C/C++ code

Featured Replies

Do you know if reading a P variable from a C/C++ code can be done? If yes, how?For example, if I want to read the TIME ZONE OFFSET variable, I can do it in XML:(P:TIME ZONE OFFSET, minute)But can I do the same from C/C++ ?Thanks !!Eric

Eric,This from GAUGES.H BOOL (FSAPI *execute_calculator_code) (PCSTRINGZ code, FLOAT64* fvalue, SINT32* ivalue, PCSTRINGZ* svalue);You can use it to evaluate pretty much any XML expression. I have used it to return a floating point A: or L: variable. No reason why it shouldn't give you one of the P: values.Doug

I didn't have time to test, but if I understand this correctly, it means the "code" string should contain "(P:TIME ZONE OFFSET, minute)" and the value should be returned in the fvalue or ivalue.Is that right?Thanks for the info !!Eric

  • Author

FLOAT64 time_zone_offset;execute_calculator_code("(P:TIME ZONE OFFSET, minute)",&time_zone_offset,NULL,NULL);This should work fine.Chris

Chris Koegler

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.