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 / WLanguage / Propiedades WLanguage / Propiedades de ventanas, páginas y controles
  • Overview
  • Limits
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

Overview

Two formats are used by the Date and Time edit controls and by the Calendar controls:
  • The format of the displayed value (called the input mask): this format is used to display the date or time in the Edit control.
  • The format of the value returned by the program or transferred into an item.
If the input mask and the returned value are not identical, the conversion is automatically performed when saving the associated record.

The format of returned value is typed in the window editor, in the "Details" tab of the description window of Date or Time edit controls.
The MemoryFormat property gets and sets the format of the value returned for:
  • Date or Time edit controls.
  • the columns of the Date or Time Table controls.
  • Calendar controls.
  • Static Text controls.
  • WINDEVWindows the editable Combo Box controls.
  • WINDEVWindows the columns of the Table controls displayed by Combo Box controls.
Ejemplo
WINDEVWEBDEV - Código ServidorJavaAjax
EDT_Date1.MemoryFormat = "YYYMMDD"
Trace(EDT_Date1)  // Will display 20010702
EDT_Date1.MemoryFormat = "MM/DD/YYYY"
Trace(EDT_Date1) // Will display 07/02/2001
EDT_Time1.MemoryFormat = "HH:MM"
Trace(EDT_Time1)  // Will display "14:31"
EDT_Time1.MemoryFormat = "HHMMSS"
Trace(EDT_Time1) // Will display "143123"
WINDEV
// Stored format of a Combo Box control displaying a list
Trace(COMBO_ListEdit.MemoryFormat)
COMBO_ListEdit.MemoryFormat = "YYYMMDD"
Trace(COMBO_ListEdit.MemoryFormat)

// Combo Box displaying a table
// Stored format of a Date column in a Table control
Trace(COMBO_TableEdit.COL_DateCol.MemoryFormat)
Sintaxis

Finding out the returned value Ocultar los detalles

<Returned value> = <Control used>.MemoryFormat
<Returned value>: Character string
Format currently used for the returned value of the specified control.
For edit control fields and Table field columns, if this parameter corresponds to an empty string (""), the "As is" option is selected: the returned value then corresponds to the edit control mask (known programmatically via property InputMask).
For the Calendar controls, the default format is used ("YYYYMMDD") if this parameter corresponds to an empty string ("").
<Control used>: Control name
Name of the control used:
  • "Date" or "Time" edit control,
  • "Date" or "Time" column of a Table control,
  • Calendar control.
PHP The MemoryFormat property is only available on Calendar controls.
WINDEVAndroidJavaPHP

Modifying the returned value Ocultar los detalles

<Control used>.MemoryFormat = <New format>
<Control used>: Control name
Name of the control used:
  • "Date" or "Time" edit control,
  • "Date" or "Time" column of a Table control,
  • Calendar control.
PHP The MemoryFormat property is only available on Calendar controls.
<New format>: Character string
New format used for the returned value of the specified control.
For Edit control fields and Table control columns, if this parameter corresponds to an empty string, the "As is" option is selected: the returned value then corresponds to the input mask (known in programming via the InputMask property).
For the Calendar controls, the default format is used ("YYYYMMDD") if this parameter corresponds to an empty string ("").
Observaciones

Limits

The MemoryFormat property applies only to:
  • "Date" and "Time" edit controls.
  • "Date" and "Time" columns of a Table control.
  • Calendar controls.
  • Static Text controls.
  • WINDEV editable Combo Box controls.
  • WINDEV columns of a Table control displayed by Combo Box controls.
WEBDEV - Código Servidor The MemoryFormat property is read only.
AndroidJava The MemoryFormat property can only be used with Edit controls.
PHP The MemoryFormat property is only available on Calendar controls.
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 13/05/2025

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