PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Displaying an information in an HTML control
  • HTML control found in a window
  • HTML control found in a page (server code)
  • Retrieving the value of an HTML control
  • Window control
  • Page control
  • Retrieving the HTML code from an HTML control
  • Window control
  • Navigating in an HTML control
  • Window control
  • Properties specific to the HTML controls
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
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 HTML control corresponds to the name of HTML control. The variable type is a character string.
Versions 16 and later
Android The HTML controls are now available for the Android applications.
Universal Windows 10 App The HTML controls are now available for the Windows Phone applications.
New in version 16
Android The HTML controls are now available for the Android applications.
Universal Windows 10 App The HTML controls are now available for the Windows Phone applications.
Android The HTML controls are now available for the Android applications.
Universal Windows 10 App The HTML controls are now available for the Windows Phone applications.
Versions 17 and later
iPhone/iPad The HTML controls are now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad The HTML controls are now available for the iPhone/iPad applications.
iPhone/iPad The HTML controls are now available for the iPhone/iPad applications.
WEBDEV - Server code An HTML control can be programmed in server code only if the control is defined as being "Dynamic" ("Details" tab in the description window of the control).
Caution: When the control is defined as being a dynamic control, it can only be assigned by programming.
Displaying an information in an HTML control
WINDEVWindowsAndroidiPhone/iPadUniversal Windows 10 App

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_WebPage = MyDisplayedPage
Note: If the control is associated with an item of a data file, the assignment is automatically performed by using FileToScreen. You also have the ability to use the following notation: CustomerName = CUSTOMER.NAME. See Linking an HTML control to an item for more details.
WEBDEV - Server code

HTML control found in a page (server code)

To display an information in an HTML control, a simple assignment is sufficient.
Some examples:
  • Direct assignment:
    HTM_WebPage = "Name of Web user"

    HTM_Site = [
    <A href="http://www.windev.com" target="_blank"> PC SOFT</A>
    ]
  • Assignment by variable:
    HTM_WebPage = MyPage
  • Assignment by calculation:
    HTM_Name = "Customer name: " + NoSpace(CUSTOMER.LASTNAME) + TAB + NoSpace(CUSTOMER.FIRSTNAME)
You also have the ability to use ..Value.
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:
    ContentCurrentPage = HTM_WEBPAGE
  • Use ..Value.
    Universal Windows 10 App ..Value 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 ScreenToFile. You also have the ability to use the following notation: CUSTOMER.NAME = Edit1. See Linking an HTML control to an item for more details.
WEBDEV - Server code

Page control

To retrieve the content of an HTML control (the user can enter data in the control):
  • A simple assignment is sufficient. For example:
    HTMLContent = HTM_HTMLControl
  • Use ..Value.
Retrieving the HTML code from an HTML control
WINDEViPhone/iPad

Window control

To retrieve the HTML code found in an HTML control, use ..DisplayedValue. This property is used to retrieve the HTML code found in the BODY of the HTML page.
Navigating in an HTML control
WINDEVAndroidiPhone/iPadUniversal Windows 10 App

Window control

HTMLNavigate 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.
Versions 16 and later
Android BrowserRunApp is used to display an HTML page in the browser of the computer.
New in version 16
Android BrowserRunApp is used to display an HTML page in the browser of the computer.
Android BrowserRunApp is used to display an HTML page in the browser of the computer.
AndroidiPhone/iPad BrowserRunApp is used to display an HTML page in the browser of the computer.
Properties specific to the HTML controls
The following properties are used to manage the characteristics of an HTML control by programming.
Versions 18 and later
WithZoom
New in version 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.
TypeUsed to find out the type of object.
ValueUsed to find out and modify the value of a control.
DisplayedValueUsed to find out the HTML code found between the <BODY> and </BODY> tags.
InitialValueUsed 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.
See also
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment