TargetDesktop
From Xojo Documentation
Constant As Boolean
anBoolean = TargetDesktop
Used to indicate whether the app is a Desktop app.
Usage
result = TargetDesktop
Part | Type | Description |
---|---|---|
result | Boolean | Returns True if you are compiling or running a desktop app. |
Sample Code
Use TargetDesktop to isolate code for desktop apps.
See Also
DebugBuild, XojoVersion, XojoVersionString, TargetBigEndian, TargetCocoa, TargetLinux, TargetLittleEndian, TargetMachO, TargetMacOS, TargetWeb, TargetWindows, TargetX86 constants; #If...#Endif statement; ConsoleApplication, ServiceApplication, WebApplication, iOSApplication classes.