setArrayAttributes()

SetArrayAttributes() is used to set display attributes for specific cells of the screen array. The method needs two arguments to be specified:

CALL Dialog.SetArrayAttributes("screen_array", program_array)

There is some specifics about using variables with ui.Dialog methods.

You can learn about them here.

The screen and program array should have the same number of records.  The elements of the screen and program array must have the same names. Moreover, the screen array elements should be defined as a character data type, which is typically STRING.

program_array specifies the program array containing the screen array color and video attributes. The cell attributes can be represented as combinations of these:

When the attribute values are stored to the program array, they can be passed to the dialog with the SetArrayAttributes() method used in a BEFORE DISPLAY or BEFORE INPUT blocks.

The attributes set this way can be changed dynamically. To cancel the applied attributes, pass NULL to the SetArrayAttributes() as program_array .

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.