getFieldTTYAttributes()
Return a list of the terminal (TTY) attributes of a form field.
Syntax
getFieldTTYAttributes(
name STRING)
RETURNS DYNAMIC ARRAY OF STRING
- name is the name of a form field.
Usage
Use
getFieldTTYAttributes()
to return a list of the TTY attributes of the field
to test in a scenario. Use this method to test for style values, such as color, "reverse" , "blink",
"dim", and so on. For example, a simple form field for entering a password can have TTY
attributes:INPUT BY NAME passwd ATTRIBUTES(WITHOUT DEFAULTS) END INPUT
In the
form file (per), these TTY attributes can be set for the "passwd"
field:# ...
ATTRIBUTES
EDIT passwd = formonly.passwd, INVISIBLE;#, color=BLUE;
END
# ...
CALL ggc.getFieldTTYAttributes("passwd") RETURNING tty_values
getFieldTTYAttributes
will return "invisible". Nothing after the comment
(#, color=BLUE;
) is returned.