Consultor Eletrônico



Kbase 15519: How To Set The Date In The Crescent Calendar VBX
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/10/1998
How To Set The Date In The Crescent Calendar VBX

The following code fragment shows how to change the selected date in
the Crescent Calendar VBX.

You need to implement code like this because the Calendar VBX uses
serial dates instead of normal MM/DD/YY dates.

First off, be sure to set the VBX property "DateType" to 1 (Crescent
Serial Date).

Second,

Insert the following code wherever it is required in your
application:

DEFINE VARIABLE CrescentDate AS DATE NO-UNDO INITIAL "12/31/1979".
DEFINE VARIABLE Result AS LOGICAL NO-UNDO.

Result = hc_CSCalendar:SET-PROPERTY("Date":U,TODAY - CrescentDate).
Result = hc_CSCalendar:REFRESH().

Progress Software Technical Support Note # 15519