ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Standard functions / HTML file functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Creates an htmlDocument variable from an HTML document.
Example
d is htmlDocument = HTMLOuvre("https://www.pcsoft.fr", fromURL)
Syntax
<Result> = HTMLOpen(<HTML source> [, <Source type>])
<Result>: htmlDocument variable
htmlDocument variable that contains the specified source.
<HTML source>: Character string
HTML document to load. The content of this document depends on the <Source type>.
<Source type>: Optional Integer constant
How the source is to be interpreted. The available constants are as follows:
fromFileThe <HTML source> is a file path. The HTML content is loaded from this file.
fromStringThe <HTML source> contains the actual HTML elements.
fromURLThe <HTML source> is a URL. The HTML content is retrieved from this URL.

If this parameter is not specified, the type of the source is automatically inferred according to the content of the <HTML source>:
  • If the <HTML source> starts with "http://", the fromURL constant will be used.
  • If the <HTML source> starts with a drive letter or a UNC path, the fromFile constant will be used.
  • In all other cases, the fromString constant will be used.
Business / UI classification: Business Logic
Component: wd300html.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help