Constant

TargetWeb


Description

Used to indicate whether the application is a Web app.

Usage

result = TargetWeb

Part

Type

Description

result

Boolean

Returns True if you are compiling or running a Web app.

Notes

TargetWeb is True only for Web apps. However, Web apps can use all Console features but Console apps cannot use any Web app features ((i.e. the methods/properties/classes that are Web-only). Here is the relationship between TargetWeb and TargetDesktop.

App Type

TargetWeb

TargetDesktop

Web

True

False

Console

False

False

Desktop

False

True

Compatibility

All project types on all supported operating systems.