TargetDesktop

From Xojo Documentation

Constant As Boolean

aBoolean = 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.

#If TargetDesktop Then
Var c As New Clipboard
#Endif

See Also

DebugBuild, XojoVersion, XojoVersionString, TargetBigEndian, TargetCocoa, TargetLinux, TargetLittleEndian, TargetMachO, TargetMacOS, TargetWeb, TargetWindows, TargetX86 constants; #If...#Endif statement; ConsoleApplication, ServiceApplication, WebApplication, iOSApplication classes.