PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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/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.
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 = [
    <À href="http://www.windev.com" target="_blank"> PC SOFT</À>
    ]
    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):
  • A simple assignment is sufficient. For example:
    HTMLContent = HTM_HTMLControl
  • Use the Value property.
HTML control properties
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