assign Tag
Purpose: Assign text to a Variable. Variable must be a valid variable name or object field. Anything you type between the opening and closing assign tags is processed in HTML mode where the resulting string output is not sent to the browser, as usual, but stored in the Variable. Useful when a lengthy text is to be produced using some of the formatting features of heitml. Here's a Source Code example that uses the assign Tag to store a nice little heitml demo routine in a variable gl._prg. (We won't go into detail about the inner workings of the routine itself other than to explain that you can easily adapt it to many purposes, including to convert a string of text to a furl argument that could be passed to another page on the URL line of your Browser.) Example:
Now that we've stored the routine into the variable gl._prg, here's what happens when you use the ? Tag to display the contents of the variable. Example:
Notice that heitml automatically knew it should omit the escape characters "\" to show the Code in its pure form (i.e. the normal form you would use if you were executing the code directly, without having assigned it to a variable. And here's what happens when we tell heitml to interpret the contents of the gl._prg variable as heitml Source Code to be executed: Example:
Selected blog articles : 3D Objects on HTML pages, CSS Transition Visibility, and CSS Transition Display. © 1996-2024 H.E.I. All Rights Reserved. |
|