Skip to main content

[archive] Trouble with Regenerating Code

  • April 27, 2010
  • 2 replies
  • 0 views

[Migrated content. Thread originally posted on 21 April 2010]

I need to add a Cmd-Close procedure to the Exception Procedure of an Entry Field and when I put the code in and regenerate the source my code is replaced by the generated code. What I want to do is edit the Exception Procedure of the Entry field in the Event Paragraph so that when I regenerate my source the code is not blown away. I am using AcuBench 6.2. Any help would be great.

2 replies

[Migrated content. Thread originally posted on 21 April 2010]

I need to add a Cmd-Close procedure to the Exception Procedure of an Entry Field and when I put the code in and regenerate the source my code is replaced by the generated code. What I want to do is edit the Exception Procedure of the Entry field in the Event Paragraph so that when I regenerate my source the code is not blown away. I am using AcuBench 6.2. Any help would be great.
Haven't worked with Version 6 in awhile. The code you place in the event editor should wind up in a copybook Program1.evt or something similar to that. This should occur, unless you have eliminated the tags:

*{Bench}copy-procedure
COPY "Program1.evt".
*{Bench}end

If you eliminated these tags, put them back in.

[Migrated content. Thread originally posted on 21 April 2010]

I need to add a Cmd-Close procedure to the Exception Procedure of an Entry Field and when I put the code in and regenerate the source my code is replaced by the generated code. What I want to do is edit the Exception Procedure of the Entry field in the Event Paragraph so that when I regenerate my source the code is not blown away. I am using AcuBench 6.2. Any help would be great.
Right, so you've been putting code inbetween the tags then which of course gets overridden

You need to stop acubench from finding the tags
stick a few more *'s just before the tag.