PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Displaying an information in an HTML control
  • HTML control in a window
  • HTML control in a page (server code)
  • Retrieving the value of an HTML control
  • Page control
  • Retrieving the HTML code from an HTML control
  • Navigating in an HTML 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.
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
Windows

HTML control 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
Remark: 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 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"

    let sMyPage = [
    <a href="http://www.windev.com" target="_blank"> PC SOFT</a>
    ]
    HTM_Site = sMyPage
  • 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
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
Navigating in an HTML control
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 version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment