AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Mostrar control
  • Overview
  • Initializing a formatted display control (server code)
  • Retrieving the value of a formatted display control (server code)
  • Use example
  • How to display "last update date: dd/mm/yyyy" in a page:
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Manipulating formatted display controls programmatically
Overview
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 type of the variable depends on the control type (numeric, text, currency, ...).
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:
// Initialisation du champ d'affichage formaté "LIBF_Date"
LIBF_Date = 19990506 
// Autre possibilité: Date.Valeur = "19990506"
Note: it is also possible to use the Value property or the Caption property.
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:
    ContenuActuelAff = LIBF_FORMATE1
  • handle the formatted display control directly. For example:
    Info(LIBF_FORMATE1)
  • use the Value or Caption properties.
Use example

How to display "last update date: dd/mm/yyyy" in a page:

  1. Creating a formatted display control.
  2. 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.
Versión mínima requerida
  • Versión 9
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local