Constant
TargetDesktop
Description
Used to indicate whether the app is a Desktop app.
Usage
result = TargetDesktop
Part |
Type |
Description |
---|---|---|
result |
Returns True if you are compiling or running a desktop app. |
Sample code
Use TargetDesktop to isolate code for desktop apps.
#If TargetDesktop Then
Var c As New Clipboard
#Endif
Compatibility
All project types on all supported operating systems.
See also
DebugBuild, XojoVersion, XojoVersionString, TargetAndroid, TargetBigEndian, TargetLinux, TargetLittleEndian, TargetMachO, TargetMacOS, TargetMobile, TargetWeb, TargetWindows, TargetX86 constants; #If...#Endif statement; ConsoleApplication, ServiceApplication, WebApplication, MobileApplication classes.