|
From: David E. <de...@us...> - 2007-01-01 22:38:41
|
Harold Norris wrote: > Is there any way to modify the compiler so it > doesn't initialize a PIC X variable with spaces. After a quick look at the code, it appears that the SCREEN and LINE/POS methods are coded differently. With the LINE/POS method if you use the 'UPDATE' attribute, the contents of variable are displayed, otherwise the screen locations are blanked. I'm not sure that this inconsistent behavior between SCREEN and LINE/POS methods is a good approach. Maybe the code was not finished. Anyway, I think I found a way to fix your problem. Following your example. ... 01 INPUT-NUMBER PIC X(14) JUST RIGHT. ... MOVE ... TO INPUT-NUMBER ACCEPT INPUT-NUMBER AT line 1 position 2 UPDATE All you have to do is use either groups or a combination of moves, and your desired effect can be achieved. See example in 'test.code/t26'. I still don't think leaving the contents on the screen from a previous 'ACCEPT/DISPLAY', when the new fields are using the same screen location, is correct behavior. So I will not change this behavior. Hope this helps. |