ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / HTML file functions
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
Creates an htmlDocument variable from an HTML document.
Example
d is htmlDocument = HTMLOpen("https://www.windev.com", fromURL)
Syntax
<Result> = HTMLOpen(<HTML source> [, <Type of source>])
<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 <Type of source>.
<Type of source>: 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: wd290html.dll
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