Up   Previous Page   Next Page
Crystal clear icicle photograph by Donna Cooper

Application "Defaults" vs "Settings"

AppDefault (predefined key)

Assignment in INI file

[TWebApp.Defaults]
cgiUseFilter=true
cgiUseAppID=false
ExportURL=/client123/
homepage=pgCover

Usage in W-HTML

(~AppDefault.ExportURL~)

Usage in Delphi

aString := pWebApp.AppDefault['ExportURL'];

AppSetting (custom key)

Assignment in INI file

[TWebApp.AppSettings]
InventoryDB=192.168.1.12:d:\projects\inventory.gdb
AdminEmail=admin2004@mycompany.com

Usage in W-HTML

(~AppSetting.InventoryDB~)

Usage in Delphi

Database := pWebApp.AppSetting['InventoryDB'];

See also: SetupID feature

[? SetupId Property of TWebBasicInfo] in webhub.hlp

Works with syntax stage 1