A powerful new syntax is available for 4D tags inside texts and Blobs to be processed.
This new syntax is supported in two cases:
- files with “.shtml” extensions served by 4D Web Server
- Text and Blobs sent as parameters to the PROCESS 4D TAGS command
The new syntax is available for three tags, 4DEVAL, 4DTEXT and 4DHTML, which can now be written prefixed with a $ (dollar sign) rather than as HTML comments.
$4DTEXT($1) is equivalent to <!-- 4DTEXT($1) -->
$4DEVAL($1) is equivalent to <!-- 4DEVAL($1) -->
$4DHTML($1) is equivalent to <!-- 4DHTML($1) -->
4DEVAL will evaluate the parameter sent; it can be a variable of any type (numeric, text, date, time) or a 4D Expression.
Note: $4DEVAL($numeric) always uses “.” as decimal separator when the input is a numeric value. If you want to use a local decimal parameter (based on system local settings) then you must use the “String” command inside the $4DEVAL tag, e.g.: $ 4DEVAL(String:C10($numeric))
The parameter $message contains characters (for example, “<“, “>”) which must be transformed in order to be HTML compatible. The 4DTEXT tag will transform these characters accordingly (>, <).
The parameter contains text that is already supposed to be HTML compatible. The 4DHTML tag will just return the text “as is”.
For more details, please take a look at the 4D v15 R4 upgrade manual.