# Directives

SHOW | Show Control

## Formats

1. | Show Control: | SHOW [ CONTROL ] ctl_id [ :idx ] , … [,ERR=stmtref]
2. | Show Controls: | SHOW [ CONTROL ] string$ [,ERR=stmtref]

Where:

ctl_id | Unique numeric CTL identifier for the object (button, list box, etc.) to be shown. Numeric expression, integer.
idx | (For Radio Buttons Only) Indicates the specific instance of the radio button group.
stmtref | Program line number or statement label to which to transfer control.
string$ | A string or string expression consisting of a series of 3-byte values where byte 1 - 2 of each value is the binary CTL number and byte 3 is the index when addressing a radio button (else ignored).
CONTROL | An optional keyword CONTROL may be specified immediately following the SHOW directive.

Example:

> show control Buttn_1

In addition, the SHOW directive can accept multiple CTL IDs (up to 500) in a comma-separated list, which may be a mix of standard controls and/or radio buttons with idx specifications.

Example:

> show Button_1,Button_2,LB_Clients,RB_Credit:1,RB_Credit:3

## Description

Use the SHOW directive to redisplay a given hidden control object so that the user can see it and the program can set the focus on it.

The HIDE directive hides a control from display. While the control is hidden, it is still active for the purposes of reading/writing; however, the user cannot see it nor can the program set focus on it.

#### Note:
The SHOW directive does not work for a Fonted/Fixed Text control unless the control is first assigned to a group. For more information, see Fonted/Fixed Text Control.

## See Also

HIDE Hide Control

## Example

0010 button BTN.VISA,@(10,10,10,2)="&Visa Info"
0100 read (1,key=CUST_ID$)iol=1000
0110 if CST.TERM$="CHQ" then hide BTN.VISA else show BTN.VISA