From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Constant As Boolean

aBoolean = TargetDesktop

Used to indicate whether the app is a Desktop app.


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

See Also

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