Skip to main content

in the ds-cpy i found a value of a push-button

03 PB-STOP PIC 9(8) COMP-X VALUE 6.

in dialog system i can do any function at example "button-selectec"

Is it possible to set the state or get the state of the buttion directly in the cobol progrram without calling dialog system?

Thanks for help!

in the ds-cpy i found a value of a push-button

03 PB-STOP PIC 9(8) COMP-X VALUE 6.

in dialog system i can do any function at example "button-selectec"

Is it possible to set the state or get the state of the buttion directly in the cobol progrram without calling dialog system?

Thanks for help!

move 1 value1

get-button-state pb-stop value1 or set-button-state pb-stop value1 don't work in cobol program, only in ds


move 1 value1

get-button-state pb-stop value1 or set-button-state pb-stop value1 don't work in cobol program, only in ds

I am not sure I understand exactly what you are asking. Dialog System handles all of the screen I-O functionality. You could create a procedure in your Dialog System code that can be called from COBOL, that executes the get and set button-state functions and then sets or reads a flag data item from the data-block and then does a RETC to your program. 

If this is not what you are looking foir then please provide more detail on what it is you are trying to accomplish?

Thanks