4D v12.1

Renaming 4D HTML tags

Home

 
4D v12.1
Renaming 4D HTML tags

 

Renaming 4D HTML tags  


 

 

Warning: For technical reasons, the modifications described below were not integrated in the current version of 4D v12.1. They will be available starting with version 12.2 (and in v12.1 hotfix 1 for the Partners).

For greater clarity and better control, certain HTML tags have been modified in 4D v12.1:

  • You must use the new 4DHTML tag instead of 4DHTMLVAR, but they work exactly the same way.
  • The 4DVAR tag is now obsolete. You can replace it with one of the two following specialized tags:
    • 4DHTML (formerly 4DHTMLVAR, see above) to insert a 4D variable or expression as an HTML expression.
    • 4DTEXT, a new tag to insert a 4D variable or expression as text. Unlike 4DVAR, this tag does not support the mechanism that allows you to add HTML code by adding the expression Char(1) to the beginning of the inserted value.

Here is a summary of the new features:

Value of myvar4D Tag <12.1New 4D 12.1 tagInsertion into a Web page
myvar:="<B>"<!--#4DVAR myvar--><!--#4DTEXT myvar-->&lt;B&gt;
myvar:=Char(1)+"<B>"<!--#4DVAR myvar--><!--#4DTEXT myvar-->&lt;B&gt;
myvar:="<B>"<!--#4DHTMLVAR myvar--><!--#4DHTML myvar--><B>
myvar:=Char(1)+"<B>"<!--#4DVAR myvar--><!--#4DHTML myvar--><B>

Compatibility note: The 4DVAR and 4DHTMLVAR tags are still supported in 4D v12.1 and work the same way as in previous versions. However, we recommend that you start using the new nomenclature and migrate the code of your applications as soon as possible.

 
PROPERTIES 

Product: 4D
Theme: Renaming 4D HTML tags