ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / HTML control
  • Overview
  • Displaying information in an HTML control
  • HTML control in a page (server code)
  • Getting the value of an HTML control
  • Control in a page
  • HTML control properties
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Manipulating HTML controls programmatically
Overview
You can programmatically manipulate HTML controls. 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 variable type is a character string.
Displaying information in an HTML control

HTML control in a page (server code)

To display information in an HTML control, simply assign a value.
For example:
  • Direct assignment:
    HTM_WebPage = "Name of Web user"

    let sMyPage = [
    	<a href="http://www.pcsoft.fr" target="_blank"> PC SOFT</a>
    	]
    HTM_Site = sMyPage
  • Assignment using a variable:
    HTM_WebPage = MyPage
  • Assignment using a calculation:
    HTM_Name = "Customer name: " + NoSpace(CUSTOMER.NAME) + TAB + NoSpace(CUSTOMER.FIRSTNAME)
You can also use the Value property.
Getting the value of an HTML control

Control in a page

To get 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 HTML controls, see HTML control properties.
See also
Minimum version required
  • Version 9
Comments
Click [Add] to post a comment

Last update: 09/30/2024

Send a report | Local help