From Xojo Documentation

Revision as of 21:16, 22 November 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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, TargetCocoa, TargetLinux, TargetLittleEndian, TargetMachO, TargetMacOS, TargetWeb, TargetWindows, TargetX86 constants; #If...#Endif statement; ConsoleApplication, ServiceApplication, WebApplication, iOSApplication classes.