ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The Body property gets and sets the HTML body of an HTML Display control or an HTML Editor control.
Example
// Changes the description of the article in the Article data file
Item.Description = HTM_Browser.Body
HModify(Item)
Syntax

Getting the HTML body of an HTML Display control or an HTML Editor control Hide the details

<Result> = <Control used>.Body
<Result>: Character string
HTML code of the body.
<Control used>: Control name
Name of control to use:
  • HTML Display control.
  • HTML Editor control.

Changing the HTML body of an HTML Display control or an HTML Editor control Hide the details

<Control used>.Body = <New value>
<Control used>: Control name
Name of control to use:
  • HTML Display control.
  • HTML Editor control.
<New value>: Character string
New HTML body code.
Remarks
  • The Body property changes the body of the HTML code in the control, without changing the header. This makes it possible to keep CSS style sheets loaded, for example.
  • If the control is bound to a data file item, the Body property will be used by the FileToScreen and ScreenToFile functions.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/02/2024

Send a report | Local help