Consultor Eletrônico



Kbase P24971: 4GL/ABL: How to programmatically change the DATE-FORMAT attribute at run time?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   02/09/2008
Status: Unverified

GOAL:

4GL/ABL: How to programmatically change the DATE-FORMAT attribute at run time?

GOAL:

How to change the the 4GL/ABL client session DATE-FORMAT attribute from dmy to mdy?

FACT(s) (Environment):

All Supported Operating Systems
Progress 9.x
OpenEdge 10.x

FIX:

Use the 4GL/ABL SESSION system handle to change the DATE-FORMAT attribute at runtime. For example, the following code snippet demonstrates how to change the DATE-FORMAT attribute of the current SESSION system handle from dmy to mdy. In this code, we first set the DATE-FORMAT attribute to dmy and display today's date using that format. Next, we set the DATE-FORMAT to mdy and display today's date using that format:
ASSIGN
SESSION:DATE-FORMAT = "dmy".
MESSAGE TODAY
VIEW-AS ALERT-BOX INFO BUTTONS OK.
ASSIGN
SESSION:DATE-FORMAT = "mdy".
MESSAGE TODAY
VIEW-AS ALERT-BOX INFO BUTTONS OK.