Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Command Index > S

SHOW STATICVAR

Scroll Prev Top Next More

Use the SHOW STATICVAR command to display the current values and data types of static variables. Static variables are created with the SET STATICVAR command.

 

SHOW_STATICVAR

 

Options

 

ASC

Specifies to sort the variable output alphabetically in ascending order

 

DES

Specifies to sort the variable output alphabetically in descending order

 

varname

Specifies a static variable to be displayed. You can use wildcards to display variables that match a specific pattern.

 

=w,h

Specifies a maximum width and number of lines for the display of the variable. Long text variables are displayed on multiple lines. The =w,h option is limited to 30 characters and one line for these data types: CURRENCY, DATE, DATETIME, DOUBLE, INTEGER, NUMERIC, REAL, and TIME. When using the =w,h option for BIT, BITNOTE, LONG VARCHAR, LONG VARBIT, NOTE, TEXT, VARCHAR, and VARBIT variables, you can widen the display and set the total number of lines to display. If h is omitted, the value defaults to the number of lines needed to display the text for LONG VARCHAR, NOTE, TEXT, or VARCHAR data types, and only displays the file type for BIT, BITNOTE, LONG VARBIT, and VARBIT data types. Wildcards cannot be specified as part of the variable name with the width and line number parameters.

 

About the SHOW STATICVAR Command

 

Use SHOW STATICVAR to include static variable values in screen displays in a procedure, a command file, or at the R> Prompt. After displaying the variable values, R:BASE moves the cursor to the beginning of the next row.

 

You can also use SHOW STATICVAR or the PAUSE command to help debug command files by tracing the changing values of one or more variables.

 

Examples

 

The following command displays all defined static variables.

 

SHOW STATICVAR

 

The following displays all static variables in descending order.

 

SHOW STATICVAR DES

 

The following command displays the contents of the vMessage variable. If vMessage has a TEXT data type with a length of 50, R:BASE displays the first 25 characters on the first line, and the remaining 25 characters on the second line.. The setting for SET WRAP affects the display of variables.

 

SHOW STATICVAR vMessage =25

 

The following command displays all static variables that begin with the characters "Emp." The wildcard characters defined by the SET SINGLE and SET MANY settings must be used.

 

SHOW STATICVAR Emp%

 

The following command sorts all static variables beginning with "vCust" in ascending order. The wildcard characters defined by the SET SINGLE and SET MANY settings must be used.

 

SHOW STATICVAR vCust% ASC