Home > Structure > English > special tags > advancedparser tags > setvar
A newer version of this fact exists. (view)

setvar
 

<setvar VarName="VarValue"/>

 

Sets a variable that can be used later. The setvar tag works together with the var tag - setvar defines the variable name and value and later in the script the var tag gets replaced by the variable value. These tags are widely used in the FCS default header.

 

Example:

 

 

   <setvar font_family="Verdana, Arial, Helvetica">

   <setvar top_background_color="#FFFFFF">


    ...

 

   <table border=0 cellpadding=0 cellspacing=0 width="100%" bgcolor="<var top_background_color>"    style="font-family:<var font_family>">

 

   ...

 

 

info3 - 125057.2
You can use this tag only in html mode and at the very beginning of the html text you should type <advancedparser/>! 




Metainfo:
Author: Webservices GmbH factline; Copyright: factline Webservices GmbH; Published by: factline GmbH (factline6)
factID: 1249649.6 (...history); published on 27 Oct. 2008 15:22
 
Shortcuts:
Structure  >  English  >  special tags  >  advancedparser tags 
 
Referers (1):
var27 Oct. 2008factlink