[Migrated content. Thread originally posted on 26 April 2007]
Hi,Sorry, but this is a really long post.
I'm at a loss as to what is the easiest option for me, but here goes.
I have a program which is a grid control for order entry.
Changes were made and tested by me on a normal runtime V7.2.0 - all works well.
The changes were tested on a SCO unix environment(openserver R5.0.7) via thin client to a windows xp machine.
Again all is well - runcbl version is ACUCOBOL-GT runtime version 7.2.0 ECN-3314 ECN-3372 ECN-3544 ECN-3574
Acuthin version is ACUCOBOL-GT Thin Client version 7.2.0 ECN-3314 ECN 3372 ECN-3544 ECN-3574 Build 1986
Program goes to end user, they test but using normal runtime - still all is well.
Program goes live on a SCO machine same version and runtime as above and there is a problem.
When I try to debug the code remotely it works.
I enter the debugger in the MSG-FINISH-ENTRY event.
Here's bits of the code
SCREEN1A-GD-1-EV-MSG-FINISH-ENTRY.
INQUIRE SCREEN1A-GD-1, Y = WS-Y, X = WS-X
EVALUATE WS-X
*PRODUCT CODE & QUANTITY & PRICE & END OF LINE
WHEN 1 WHEN 5 WHEN 6 WHEN 7
MOVE EVENT-ACTION-TERMINATE TO EVENT-ACTION
EXIT PARAGRAPH
END-EVALUATE
Here's the EX-OTHER routine for the screen (I will try changing this to an EX-OTHER for the grid to see if that helps)
*CAPTURE FINISH-ENTRY TERMINATION OF ACCEPT
IF Event-Type = MSG-FINISH-ENTRY
AND Event-Control-ID = 23
EVALUATE WS-X
WHEN 1
PERFORM FINISH-COLUMN1-CODE
EXIT PARAGRAPH
WHEN 5
PERFORM FINISH-COLUMN5-CODE
EXIT PARAGRAPH
WHEN 6
PERFORM FINISH-COLUMN6-CODE
EXIT PARAGRAPH
WHEN 7
PERFORM FINISH-COLUMN7-CODE
EXIT PARAGRAPH
END-EVALUATE
END-IF
Here's a bit of the FINISH-COLUMN1-CODE
*This is the code which used to be in the FINISH-ENTRY of the grid
FINISH-COLUMN1-CODE.
*PRODUCT CODE
MOVE ZEROS TO EVENT-TYPE
MODIFY SCREEN1A-GD-1, Y = WS-Y, X = WS-X
CURSOR-Y = WS-Y, CURSOR-X = WS-X
MOVE 1 TO IND2
INQUIRE SCREEN1A-GD-1, CELL-DATA IN S-ORL-BAR(IND2)
HIDDEN-DATA IN WS-SAVE-REC(IND2)
Basically the problem I have (NOTE: only on the users machine which as far as I'm concerned is the same setup as our testing machine) is the the HIDDEN-DATA returned from the INQUIRE is always the first row of the grid, not the second, third and so on.
As mentioned above if I enter the debugger just before the finish entry event it works as it was designed to do so.
I've been speaking with technical support but we can't come up with anything really.
Any ideas would be seriously appreciated.
Thanks,
Shaun



