[Migrated content. Thread originally posted on 10 September 2004]
I had to increase the size of my grid being used as data entry. I use the control-value in the screen control to monitor the last item in the grid to move the cursor control to the a certain place on the screen. The issue I am having is the screen control only has three digits. I have a need for four digits. I still have 4.3.1 compiler/runtime. The data in the control-value is being truncated.
When I change it to a four digit field, the compile says screen-control error.
Has anyone encountered this issue? Your assistance will be greatly appreciated.
Originally posted by MaryMo
When I change it to a four digit field, the compile says screen-control error.
It would be of great help if you could have provided a small example of the line that causes the compiler error.
[Migrated content. Thread originally posted on 10 September 2004]
I had to increase the size of my grid being used as data entry. I use the control-value in the screen control to monitor the last item in the grid to move the cursor control to the a certain place on the screen. The issue I am having is the screen control only has three digits. I have a need for four digits. I still have 4.3.1 compiler/runtime. The data in the control-value is being truncated.
When I change it to a four digit field, the compile says screen-control error.
Has anyone encountered this issue? Your assistance will be greatly appreciated.
Sorry, tried to increase control-value to four digits but it seems Acu compiler only permits it to 3 digits long ?? : see working storage info below
SPECIAL-NAMES.
CRT STATUS IS KEY-STATUS
SCREEN CONTROL IS SCREEN-CONTROL.
******
01 SCREEN-CONTROL.
05 ACCEPT-CONTROL PIC 9(01).
88 GOTO-FIELD VALUE 001.
05 CONTROL-VALUE PIC 9(03) VALUE ZERO.
05 CONTROL-HANDLE USAGE HANDLE.
05 CONTROL-ID PIC X(02) COMP-X.
[Migrated content. Thread originally posted on 10 September 2004]
I had to increase the size of my grid being used as data entry. I use the control-value in the screen control to monitor the last item in the grid to move the cursor control to the a certain place on the screen. The issue I am having is the screen control only has three digits. I have a need for four digits. I still have 4.3.1 compiler/runtime. The data in the control-value is being truncated.
When I change it to a four digit field, the compile says screen-control error.
Has anyone encountered this issue? Your assistance will be greatly appreciated.
Sorry, tried to increase control-value to four digits but it seems Acu compiler only permits it to 3 digits long ?? : see working storage info below
SPECIAL-NAMES.
CRT STATUS IS KEY-STATUS
SCREEN CONTROL IS SCREEN-CONTROL.
******
01 SCREEN-CONTROL.
05 ACCEPT-CONTROL PIC 9(01).
88 GOTO-FIELD VALUE 001.
05 CONTROL-VALUE PIC 9(03) VALUE ZERO.
05 CONTROL-HANDLE USAGE HANDLE.
05 CONTROL-ID PIC X(02) COMP-X.
[Migrated content. Thread originally posted on 10 September 2004]
I had to increase the size of my grid being used as data entry. I use the control-value in the screen control to monitor the last item in the grid to move the cursor control to the a certain place on the screen. The issue I am having is the screen control only has three digits. I have a need for four digits. I still have 4.3.1 compiler/runtime. The data in the control-value is being truncated.
When I change it to a four digit field, the compile says screen-control error.
Has anyone encountered this issue? Your assistance will be greatly appreciated.
You are right, you cannot modify this structure, it is a set size, and the various items inside SCREEN-CONTROL may be named as you wish, but you cannot change their size.
I'd suggest you change to use a paged grid instead, is that an option?
[Migrated content. Thread originally posted on 10 September 2004]
I had to increase the size of my grid being used as data entry. I use the control-value in the screen control to monitor the last item in the grid to move the cursor control to the a certain place on the screen. The issue I am having is the screen control only has three digits. I have a need for four digits. I still have 4.3.1 compiler/runtime. The data in the control-value is being truncated.
When I change it to a four digit field, the compile says screen-control error.
Has anyone encountered this issue? Your assistance will be greatly appreciated.
I thought as much. I will look into the paged grid and will see if this is an option. Thank you for your assistance.