PC SOFT

WINDEV的在线文档

  • Overview
  • Displaying an information in an HTML control
  • HTML control found in a window
  • Retrieving the value of an HTML control
  • Window control
  • Retrieving the HTML code from an HTML control
  • Window control
  • Navigating in an HTML control
  • Window control
  • Properties specific to the HTML controls
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Handling an HTML control by programming

Overview
The HTML control can be handled by programming. To do so, use the variable of the HTML control in the code. The variable of the HTML control corresponds to the name of the HTML control. The type of the variable is a character string.

Displaying an information in an HTML control
WinDevWindowsWindows Store apps

HTML control found in a window

To display an information in an HTML control, a simple assignment is sufficient.

Some examples:

  • Direct assignment:
HTM_WebPage"http:\\www.windev.com"
  • Assignment by variable:
HTM_WebPageMyDisplayedPage

Note: If the control is associated with a data file item, the assignment is automatically performed by using 数据库表填充到屏幕. You can also use the following notation: CustomerName = CUSTOMER.NAME. See Linking an HTML control to an item for more details.

Retrieving the value of an HTML control
WinDev

Window control

To retrieve the content of an HTML control:
  • A simple assignment is sufficient. For example:
ContentCurrentPageHTM_WEBPAGE
  • Use ..值.
    Windows Store apps ..值 returns the URL of the site but it cannot return the HTML code assigned to the control.

Note: If the control is associated with a data file item, the value entered is automatically retrieved by using 屏幕填充到数据库表. You can also use the following notation: CUSTOMER.NAME = Edit1. See Linking an HTML control to an item for more details.

Retrieving the HTML code from an HTML control
WinDev

Window control

To retrieve the HTML code found in an HTML control, use ..显示值. This property is used to retrieve the HTML code found in the BODY of the HTML page.

Navigating in an HTML control
WinDevWindows Store apps

Window control

HTML导航 is used to start a specific operation in an HTML control. You have the ability to use the FORWARD, BACK, REFRESH and START buttons of the browser.

Properties specific to the HTML controls
The following properties are used to manage the characteristics of an HTML control by programming.
18版本和更高版本
WithZoom
18新版本
WithZoom
WithZoom
Allows you to find out whether the user can perform a zoom in an HTML control found in an Android, iPhone or iPad application.
类型Used to find out the type of an object.
Used to find out and modify the value of a control.
显示值Used to find out the HTML code found between the <BODY> and </BODY> tags.
初始值Used to find out the initial value of a window control.

To find out the entire list of WLanguage properties that can be used with an HTML control, see Properties associated with an HTML control.
另见