|
|
|
|
|
- Overview
- Initializing a formatted display control (server code)
- Retrieving the value of a formatted display control (server code)
- Use example
- How to display the "last update date: mm/dd/yyyy" in a page:
Manipulating formatted display controls programmatically
WEBDEV allows you to manipulate a formatted display control programmatically. To do so, use the variable of the formatted display control in the code. The variable of the formatted display control corresponds to the name of the formatted display control. The variable type depends on the control type (numeric, text, currency, etc.). Initializing a formatted display control (server code) To initialize a formatted display control, a simple assignment of the control variable is sufficient. This initialization must be done in server code. For example: Retrieving the value of a formatted display control (server code) To retrieve the content of a formatted display control (static or dynamic) in a server code: - perform a simple assignment. For example:
CurrentDispContent = FSTC_FORMATTED1
- handle the formatted display control directly. For example:
- use the Value or Caption properties.
How to display the "last update date: mm/dd/yyyy" in a page: - Creating a formatted display control.
- In the initialization code of the control, enter the following code:
MySelf = fDate(CompleteDir(fExeDir()) + "MonSite.WDL", "", fModify)
Where "MySite.WDL" corresponds to the WDL for your site.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|