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

MacroStart and MacroEnd variables

Classic WebHub

MacroStart and MacroEnd were hardcoded constants.
MacroStart = '%=';
MacroEnd   = '=%';

Usage

%=SET|x=%=webserver.webtime=%=%

New!! Optional !!!

Define MacroStart and MacroEnd variables in Delphi

uses 
  webApp, whMacroAffixes;

with pWebApp do
begin
    MacroStart := '(~';
    MacroEnd   := '~)';
    AppID := 'MyAppID';
    Refresh;
end;

Usage

(~SET|Session['x']=(~webserver.webtime~)~)


Works with syntax stage 1 and 2.

The WebHub Dreamweaver Extension supports the original %= and =% pair, and the new (~ and ~) pair.

Requires WebHub v2.035+ .