- Static and HTML static
- Validity of HTML code
- Limitation
CaptionHTML (Property) In french: LibelléHTML
..CaptionHTML is used to handle a control caption in HTML code format. Versions 23 and later New in version 23
LINK_GSC..CaptionHTML = "Display the <strong>general sales conditions</strong>"
Syntax
Retrieving the value of control caption Hide the details
<Result> = <Control to use>..CaptionHTML
<Result>: Character string Control caption in HTML format. <Control to use>: Control name Name of control to use: Rich Text Area, button, ...
Modifying the value of control caption Hide the details
<Control to use>..CaptionHTML = <New value>
<Control to use>: Control name Name of control to use: Rich Text Area, button, ... <New value>: Character string (with quotes) New caption for the control. This value must correspond to a valid HTML code. Remarks Static and HTML static A control includes a caption or an HTML caption: it cannot include both at the same time. The assignment of ..CaptionHTML deletes the value of the caption assigned by ..Caption (and conversely). An access in read-only to ..Caption while the control caption is an HTML caption triggers an error. On the contrary, reading ..CaptionHTML while the control caption is assigned by ..Caption returns the caption value encoded in HTML. Summary table: | | | | Property assigned in the control: ..Caption | Property assigned in the control: ..CaptionHTML | Property read: ..Caption | This option returns. | Error. | Property read: ..CaptionHTML | Returns the value encoded in HTML. | This option returns. |
Validity of HTML code No check is performed regarding the validity of HTML code. If an invalid HTML value is assigned in the control, the page may not be displayed properly by the browser. You must pay attention to: - The tags (and attributes) not properly closed or invalid for the HTML standard of the page (HTML 4, HTML 5, ...).
- The encoding of special characters. You have the ability to use TextToHTML.
Limitation This property is available for the following controls: - Button control,
- Link control,
- Rich Text Area control,
Versions 20 and laterEdit control, New in version 20Edit control, Edit control, Versions 20 and laterCheck Box control, New in version 20Check Box control, Check Box control, Versions 20 and laterRadio Button control, New in version 20Radio Button control, Radio Button control, Versions 20 and laterList Box control, New in version 20List Box control, List Box control, Versions 20 and laterFormatted display control, New in version 20Formatted display control, Formatted display control, Versions 20 and laterCombo Box control, New in version 20Combo Box control, Combo Box control, Versions 20 and laterOption of Check Box control, New in version 20Option of Check Box control, Option of Check Box control, Versions 20 and laterOption of Radio Button control, New in version 20Option of Radio Button control, Option of Radio Button control, Versions 21 and laterMenu option. New in version 21Menu option. Menu option. Versions 22 and laterTable column. New in version 22Table column. Table column.
|
|
|