ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Body property is used to identify and modify 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

Identifying 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 the control to be used:
  • HTML Display control.
  • HTML Editor control.

Modifying 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 the control to be used:
  • HTML Display control.
  • HTML Editor control.
<New value>: Character string
New HTML body code.
Remarks
  • The Body property is used to modify only the body of the HTML code in the control, without modifying its header. This makes it possible to keep CSS style sheets loaded, for example.
  • If the control is bound to an item in a data file, 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: 05/26/2022

Send a report | Local help