Constant

TargetDesktop


Description

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

Compatibility

All project types on all supported operating systems.