Skip to content

Pop_Locale

Include: Use System\Locale.pkg

See Also: Push_Locale, Set_Locale, Get_Locale, Locale attributes

Purpose

Restores the most recently saved locale settings.

Syntax

Pop_Locale

Arguments

None.

Returns

None.

Behavior

Pop_Locale restores the most recently pushed locale attribute values and removes that saved scope. Call Pop_Locale once for each Push_Locale.

Use Push_Locale and Pop_Locale as a paired scope guard around temporary locale customizations.

Example

Use System\Locale.pkg

Procedure FormatShortDate Date dDate
    String sDate

    Push_Locale
    Set_Attribute DF_LOCALE_DATE_FORMAT to "yyyy-MM-dd"
    Move dDate to sDate
    Pop_Locale
End_Procedure