|
|
|
|
|
- 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
Manipulating HTML controls programmatically
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:
- 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|