Skip to main content

[archive] Date-entry

  • July 24, 2006
  • 3 replies
  • 0 views

[Migrated content. Thread originally posted on 23 July 2006]

Could someone send me a sample program in which the date-entry control is used.
The only time the date gets a new value is when I press 'enter'.
I used NOTIFY-CHANGE.

Thanks
Andre

3 replies

[Migrated content. Thread originally posted on 23 July 2006]

Could someone send me a sample program in which the date-entry control is used.
The only time the date gets a new value is when I press 'enter'.
I used NOTIFY-CHANGE.

Thanks
Andre
WORKING-STORAGE SECTION.
01 WS-DATE.
05 WS-CC pic 99 value zero.
05 WS-YY PIC 99 VALUE ZERO.
05 WS-MM PIC 99 VALUE ZERO.
05 WS-YY PIC 99 VALUE ZERO.

SCREEN SECTION.
03 scr-tx-date
DATE-ENTRY
font small-font
VALUE WS-0812-0818
DISPLAY-FORMAT "dd'/'MM'/'yyyy"
column 25 size 11
notify-change.


Note - the date-entry seems to get upset if you attempt to use a different format to the default in windows - this is also true when wanting to get the time.

Regards
Keith

[Migrated content. Thread originally posted on 23 July 2006]

Could someone send me a sample program in which the date-entry control is used.
The only time the date gets a new value is when I press 'enter'.
I used NOTIFY-CHANGE.

Thanks
Andre
Yes thanks.
Now it works fine.

Andre

[Migrated content. Thread originally posted on 23 July 2006]

Could someone send me a sample program in which the date-entry control is used.
The only time the date gets a new value is when I press 'enter'.
I used NOTIFY-CHANGE.

Thanks
Andre
Yes thanks.
Now it works fine.

Andre