PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

New WINDEV 26 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The Document property is used to identify or modify the HTML document associated with an HTML Display control or an HTML Editor control.
Example
// Retrieve the HTML code of the Body
sHTMLCode is string = HTM_MyDocument.Document.Body.OuterHTML
Syntax

Identifying the HTML document Hide the details

<Result> = <Control used>.Document
<Result>: htmlDocument variable
htmlDocument variable that contains the HTML document associated with the control.
<Control used>: Control name
Name of control used:
  • HTML Display control.
  • HTML Editor control.

Modifying the HTML document associated with an HTML Display control Hide the details

<Control used>.Document = <HTML document>
<Control used>: Control name
Name of control used:
  • HTML Display control.
  • HTML Editor control.
<HTML document>: htmlDocument variable
Name of the htmlDocument variable that contains the HTML document associated with the control.
Remarks
  • This property returns a copy of the document.
  • The changes made to this copy will not be reflected in the control.
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment