Goto: 4C Home | 4C Docs | System PCLs List sys.show_dfield()

sys.show_dfield()

Purpose:
sys.show_dfield() is used to show, hide, enable, or disable a display field.
Usage:
ret = sys.show_dfield(<dflabel>,<showflags>);
Arguments:

integer <dflabel> - unique display field id.

integer <showflags> - Combinations of SF_SHOW, SF_HIDE, SF_ENABLE, SF_DISABLE, SF_IGNORE, SF_NOIGNORE, SF_NOSHOWPARENT
Returns:
integer <ret>
0 - OK
-1 - Not a screen program, invalid dflabel, or client version not up to date.
Where Used:
sys.show_dfield() can be called from any PCL in a Screen program except the InitPCL, EndPCL, and ExitPCL.
Example:
See the demo.hrc.2 demo program for examples.
Description:
sys.show_dfield() is used to show, hide, enable, or disable a single display field. The way sys.show_dfield() works depends on which showflags are specifed.

Bugs/Features/Comments:
If sys.show_dfield() is called in the SFldPCL for a display field, it may be necessary to specify SF_NOIGNORE with SF_DISABLE or SF_HIDE. Otherwise, the same SFldPCL cannot be used to enable/show the DField because it won't ever be executed until the dfield has been enabled/shown.
See Also:
sys.show_panel()
sys.show_fkey()


Back to Top