Is function available query

Is there a way to create a #Pragma to conditionally compile based on the Version of Xojo?
For example “isDarkMode” isn’t available until 2018r3

something like

Function getDarkMode as Boolean
#IF XojoVersion>=2018.03 then
  return isDarkMode
  return false
#End if

EDIT: Wow… that actually seems to work…

You’ve got it with only one small detail. The version you’ve got there is 2018r30. You want it to be XojoVersion >= 2018.03

yeah… saw that, fixed it :slight_smile: