Method XbpHTMLWindow():setHTML() Foundation

Changes the HTML markup displayed by the object.

:setHTML( <cHTML> ) --> lSuccess
A character string with the HTML markup to display in the HTML window object. The string must be an ANSI string. Character strings using an OEM character set must first be converted with ConvToAnsiCP() before they can be used with the XbpHTMLWindow class.
In addition to ANSI character strings, XbpHTMLWindow also supports displaying Unicode content encoded in UTF-8. For this to work, the UTF-8 encoding must be specified for the HTML markup either via an UTF-8 Byte order mark (BOM), or via a
<meta http-equiv="content-type" content="text/html; charset=utf-8"> 
tag in the <head> section of the HTML document.

This method returns .T. (true) if the markup could be updated, otherwise it returns .F. (false).


The method :setHTML() changes the markup displayed in an XbpHTMLWindow object after the method :create() has been executed. The markup can be updated while the object is visible on the screen.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.