Copy & Paste

Anyone know if is it possible add Ctrl C & Ctrl V function to an acucobol project?

In entry field if i press right mouse i can copy and paste but Ctrl C and Ctrl-V don't work? Some environment problem?

  • Verified Answer

    To implement standard Windows Edit keys in an AcuCOBOL-GT program, all that is required is to add the following lines at the beginning of the program (see note below):

              set environment "KEYSTROKE" to "exception=2001 ^x".

              set environment "KEYSTROKE" to "exception=2002 ^c".

              set environment "KEYSTROKE" to "exception=2003 ^v".

              set environment "KEYSTROKE" to "exception=2004 ^z".

              set environment "KEYSTROKE" to "exception=2005 ^a".

              Set exception value 2001 to cut-selection.  

              Set exception value 2002 to copy-selection.  

              Set exception value 2003 to paste-selection.  

              Set exception value 2004 to undo.  

              Set exception value 2005 to select-all-selection.

    NOTE: The above example uses exception values 2001 through 2005.  Make sure to use exception values that are not already being used in the program.