多显示文件处理
Multiple display file handling
我有一个以以下格式显示记录的子文件程序:
Subfile initial display
记录有两个选项(5 或 7)。选项 5 检查 table 中是否存在记录,如果未找到记录,则显示以下屏幕,其中显示 window 显示文件,指示未找到记录:
Display with information window
这里的问题是,当对记录采用选项组合时,例如,如果对一个记录采用选项 5,然后对下一个记录采用选项 7,然后对下一个记录再次采用选项 5,则显示似乎失真了。
选项 7 调用显示另一个显示文件的程序,当控件返回初始显示时,它显示如下:
Distorted display
我怎样才能正确显示它(window 出现在适当的背景下?)我知道正确使用 KEEP 或 ASSUME 等关键字可以做到这一点,但不确定如何在哪个显示中使用它文件或记录格式。
创建显示文件时,应使用关键字 RSTDSP(*YES) 创建。当打开第二个显示文件时,屏幕上的显示文件被暂停。默认情况下,关闭第二个显示文件时不会重新显示第一个显示文件。那就是当你得到像你展示的那样古怪的屏幕时。
Restore display (RSTDSP)
Specifies whether data being shown at a display device by this display file is saved at the time the file is suspended (made temporarily inactive) so that another display file can show different data on the same device. If the data for this file is saved, it is restored to the display of the device when the file is used again.
*NO
The data being shown by this file is not saved when the file is suspended.
*YES
The data being shown when this file is suspended is saved, and it is restored to the device display when the file is used again.
我有一个以以下格式显示记录的子文件程序:
Subfile initial display
记录有两个选项(5 或 7)。选项 5 检查 table 中是否存在记录,如果未找到记录,则显示以下屏幕,其中显示 window 显示文件,指示未找到记录:
Display with information window
这里的问题是,当对记录采用选项组合时,例如,如果对一个记录采用选项 5,然后对下一个记录采用选项 7,然后对下一个记录再次采用选项 5,则显示似乎失真了。
选项 7 调用显示另一个显示文件的程序,当控件返回初始显示时,它显示如下:
Distorted display
我怎样才能正确显示它(window 出现在适当的背景下?)我知道正确使用 KEEP 或 ASSUME 等关键字可以做到这一点,但不确定如何在哪个显示中使用它文件或记录格式。
创建显示文件时,应使用关键字 RSTDSP(*YES) 创建。当打开第二个显示文件时,屏幕上的显示文件被暂停。默认情况下,关闭第二个显示文件时不会重新显示第一个显示文件。那就是当你得到像你展示的那样古怪的屏幕时。
Restore display (RSTDSP)
Specifies whether data being shown at a display device by this display file is saved at the time the file is suspended (made temporarily inactive) so that another display file can show different data on the same device. If the data for this file is saved, it is restored to the display of the device when the file is used again.
*NO The data being shown by this file is not saved when the file is suspended.
*YES The data being shown when this file is suspended is saved, and it is restored to the device display when the file is used again.