Skip to main content

[Migrated content. Thread originally posted on 02 March 2006]

can I select part of contents in entry-field control in before procedure program?

example: 12/11/2005. I want select the number 12


thanks !

[Migrated content. Thread originally posted on 02 March 2006]

can I select part of contents in entry-field control in before procedure program?

example: 12/11/2005. I want select the number 12


thanks !
It depends on the data item that is being used for the entry field. Many COBOL programs use a construct like:

01 my-date.
05 m-month pic 99.
05 m-day pic 99.
05 m-year pic 99.

In this case the before procedure can get the value in m-month.

[Migrated content. Thread originally posted on 02 March 2006]

can I select part of contents in entry-field control in before procedure program?

example: 12/11/2005. I want select the number 12


thanks !
It depends on the data item that is being used for the entry field. Many COBOL programs use a construct like:

01 my-date.
05 m-month pic 99.
05 m-day pic 99.
05 m-year pic 99.

In this case the before procedure can get the value in m-month.

[Migrated content. Thread originally posted on 02 March 2006]

can I select part of contents in entry-field control in before procedure program?

example: 12/11/2005. I want select the number 12


thanks !
It depends on the data item that is being used for the entry field. Many COBOL programs use a construct like:

01 my-date.
05 m-month pic 99.
05 m-day pic 99.
05 m-year pic 99.

In this case the before procedure can get the value in m-month.

[Migrated content. Thread originally posted on 02 March 2006]

can I select part of contents in entry-field control in before procedure program?

example: 12/11/2005. I want select the number 12


thanks !
If you are trying to make the "12" highlighted (selected) in the entry-field you can use the property SELECTION-TEXT of the entry-field.

You can inquire and modify this property to find out what text is selected and to also set the selected text.