KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Detecting the "Use 4DVAR comments instead of brackets" setting
PRODUCT: 4th Dimension | VERSION: 2004 | PLATFORM: Mac & Win
Published On: June 13, 2007

The setting "Use 4DVAR comments instead of brackets" must be turned on for the 4D Ajax Framework as well as the PROCESS HTML TAGS command.

Here is a 4D method to detect this setting programmatically:

  `Method: Check_Web_Compatibility

C_BOOLEAN($0;$b_Pref_Web)
C_BLOB($in;$out)
C_TEXT($in_text;maVar;maVarHTML)

maVar:="Variable value"
$in_text:="<!--#4DVAR maVar-->"
$b_Pref_Web:=True

TEXT TO BLOB($in_text;$in;Text without length )
PROCESS HTML TAGS($in;$out)

maVarHTML:=BLOB to text($out;Text without length )

If (maVarHTML#maVar)  `4DVAR non-determined tag
     $b_Pref_Web:=False  `Alert, incompatible with 4D Web 2.0 Pack!
End if

$0:=$b_Pref_Web



Related Resources:

Enable compatibility for PROCESS HTML TAGS