PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • 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 columns of the Date or Time Table controls.
  • Calendar controls.
  • Versions 15 and later
    the Static controls.
    New in version 15
    the Static controls.
    the Static controls.
Versions 15 and later
Android This property is now available for Android applications.
New in version 15
Android This property is now available for Android applications.
Android This property is now available for 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
Windows MobileJavaAjax
SAI_Date1.FormatMemorized = "YYYYYMMDD".
Trace(EDT_Date1)  // Will display 20010702
SAI_Date1.FormatMemorized = "DD/MM/YYYYY".
Trace(EDT_Date1) // Will display 07/02/2001
SAI_Hour1.FormatMemorized = "HH:MM"
Trace(EDT_Time1)  // Will display "14:31"
SAI_Hour1.FormatMemorized = "HHMMSS"
Trace(EDT_Time1) // Will display "143123"
Syntax

Finding out the returned value Hide the details

<Returned value> = <Control used>.MemoryFormat
<Returned value>: Character string
Format currently used for the returned value of the specified control.
For edit controls and columns of a Table control, 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 used>: Control name
Name of control used:
  • "Date" or "Time" edit control,
  • "Date" or "Time" column of a Table control,
  • Calendar control.
PHP The MemoryFormat property is only available for Calendar fields.
Universal Windows 10 AppWindows MobileAndroidJavaPHP

Modifying the returned value Hide the details

<Control used>.MemoryFormat = <New format>
<Control used>: Control name
Name of control used:
  • "Date" or "Time" edit control,
  • "Date" or "Time" column of a Table control,
  • Calendar control.
PHP The MemoryFormat property is only available for Calendar fields.
<New format>: Character string
New format used for the returned value of the specified control.
For edit controls and columns of a Table control, 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

The Property MemoryFormat applies only:
  • "Date" and "Time" edit controls.
  • "Date" and "Time" columns of a Table control.
  • Calendar controls.
  • Versions 15 and later
    Static controls.
    New in version 15
    Static controls.
    Static controls.
AndroidJava The Property MemoryFormat applies only to input fields.
PHP The MemoryFormat property is only available for Calendar fields.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment