TargetWeb

From Xojo Documentation

Constant As Boolean

aBoolean = TargetWeb

New in 2011r1

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

See Also

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