From Xojo Documentation

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

Constant As Boolean

aBoolean = TargetWeb

New in 2011r1

Used to indicate whether the application is a Web app.


result = TargetWeb

Part Type Description
result Boolean Returns True if you are compiling or running a Web app.


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