ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / HTML control
  • Overview
  • Displaying an information in an HTML control
  • HTML control in a page (server code)
  • Retrieving the value of an HTML control
  • Page control
  • HTML control properties
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
Handling an HTML control through programming
Overview
The HTML control can be handled through 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.
Displaying an information in an HTML control

HTML control in a page (server code)

To display an information in an HTML control, a simple assignment is sufficient.
For example:
  • 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 can also use the Value property.
Retrieving the value of an HTML control

Page control

To retrieve the content of an HTML control (the user can enter values in the control):
  • Simply assign a value. For example:
    HTMLContent = HTM_HTMLControl
  • Use the Value property.
HTML control properties
For a complete 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
Comments
Click [Add] to post a comment

Last update: 01/23/2023

Send a report | Local help