PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
  • Overview
  • Limits
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
MemoryFormat (Property)
In french: FormatMémorisé

Overview

Two formats are used by the Date and Time edit controls and by the Calendar controls:
  • The format of the displayed value (called input mask): this format is used to display the date or the 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.
..MemoryFormat is used to find out and modify the format of the value returned for:
  • the Date or Time edit controls.
  • the Date or Time table columns.
  • the Calendar controls.
  • Versions 15 and later
    the Static controls.
    New in version 15
    the Static controls.
    the Static controls.
  • Versions 17 and later
    WINDEVWindows the editable combo boxes.
    New in version 17
    WINDEVWindows the editable combo boxes.
    WINDEVWindows the editable combo boxes.
  • Versions 17 and later
    WINDEVWindows the table columns displayed by the combo boxes.
    New in version 17
    WINDEVWindows the table columns displayed by the combo boxes.
    WINDEVWindows the table columns displayed by the combo boxes.
Versions 15 and later
Android This property is now available for the Android applications.
New in version 15
Android This property is now available for the Android applications.
Android This property is now available for the Android applications.
Versions 21 and later
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Universal Windows 10 App This property is now available in Universal Windows 10 App mode.
Example
WINDEVWEBDEV - Server codeWindows MobileJavaAjax
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"
Versions 17 and later
WINDEV
// Stored format of a combo box 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 of the table
Trace(COMBO_TableEdit.COL_DateCol..MemoryFormat)
New in version 17
WINDEV
// Stored format of a combo box 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 of the table
Trace(COMBO_TableEdit.COL_DateCol..MemoryFormat)
WINDEV
// Stored format of a combo box 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 of the table
Trace(COMBO_TableEdit.COL_DateCol..MemoryFormat)
Syntax

Finding out the returned value Hide the details

<Returned Value> = <Control Name>..MemoryFormat
<Returned Value>: Character string
Format currently used for the returned value of the specified control.
For the edit controls and the table columns, the "As is" option is selected if this parameter corresponds to an empty string (""): in this case, the returned value corresponds to the input mask (returned by ..InputMask).
For the Calendar controls, the default format is used ("YYYYMMDD") if this parameter corresponds to an empty string ("").
<Control Name>: Character string (with or without quotes)
Name of control used: "Date" or "Time" edit control, "Date" or "Time" table column or Calendar control.
PHP ..MemoryFormat is available for the Calendar controls only.
WINDEVAndroidWindows MobileUniversal Windows 10 AppJavaPHP

Modifying the returned value Hide the details

<Control Name>..MemoryFormat = <New Format>
<Control Name>: Character string (with or without quotes)
Name of control used: "Date" or "Time" edit control, "Date" or "Time" table column or Calendar control.
PHP ..MemoryFormat is available for the Calendar controls only.
<New Format>: Character string
New format used for the returned value of the specified control.
For the edit controls and the table columns, the "As is" option is selected if this parameter corresponds to an empty string: in this case, the returned value corresponds to the input mask (returned by ..InputMask).
For the Calendar controls, the default format is used ("YYYYMMDD") if this parameter corresponds to an empty string ("").
Remarks

Limits

..MemoryFormat only applies to:
  • the "Date" and "Time" edit controls.
  • the "Date" and "Time" table columns.
  • the Calendar controls.
  • Versions 15 and later
    the static controls.
    New in version 15
    the static controls.
    the static controls.
  • Versions 17 and later
    WINDEV the editable combo boxes.
    New in version 17
    WINDEV the editable combo boxes.
    WINDEV the editable combo boxes.
  • Versions 17 and later
    WINDEV the table columns displayed by the combo boxes.
    New in version 17
    WINDEV the table columns displayed by the combo boxes.
    WINDEV the table columns displayed by the combo boxes.
WEBDEV - Server code ..MemoryFormat is read-only.
AndroidJava ..MemoryFormat only applies to the edit controls.
PHP ..MemoryFormat is available for the Calendar controls only.
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment