Skip to main content
Version: Next

GET SYSTEM FORMAT

GET SYSTEM FORMAT ( format ; value )

ParameterTypeDescription
formatLongint🡒System format to be retrieved
valueString🡘Value of format defined in the system

Description

The GET SYSTEM FORMAT command returns the current value of several regional parameters defined in the operating system. This command can be used to build “automatic” custom formats based on the system preferences.

In the format parameter, pass the type of parameter whose value you want to know. The result is returned directly by the system in the value parameter as a character string. In format, you must pass one of the following constants of the System Format theme. Below is a description of these constants:

ConstantTypeValueComment
Currency symbolLongint2Currency symbol (e.g.: “$”)
Date separatorLongint13Separator used in date formats (e.g.: “/”)
Decimal separatorLongint0Decimal separator (e.g.: “.”)
Short date day positionLongint15Position of the day in the short date format: “1” = left, “2” = middle, “3” = right
Short date month positionLongint16Position of the month in the short date format: “1” = left, “2” = middle, “3” = right
Short date year positionLongint17Position of the year in the short date format: “1” = left, “2” = middle, “3” = right
System date long patternLongint8Long date display format in the form “dddd MMMM yyyy”
System date medium patternLongint7Medium date display format in the form “dddd MMMM yyyy”
System date short patternLongint6Short date display format in the form “dddd MMMM yyyy”
System time AM labelLongint18Additional label for a time before noon in 12-hour formats (e.g.: “Morning”)
System time long patternLongint5Long time display format in the form “HH:MM:SS”
System time medium patternLongint4Medium time display format in the form “HH:MM:SS”
System time PM labelLongint19Additional label for a time after noon in 12-hour formats (e.g.: “Afternoon”)
System time short patternLongint3Short time display format in the form “HH:MM:SS”
Thousand separatorLongint1Thousand separator (e.g.: “,”)
Time separatorLongint14Separator used in time formats (e.g.: “:”)

See also

OBJECT SET FORMAT