Show Global Command

Displays the value of a global numeric or String value.

Show Global global_expression, project_name

Prerequisites

Any global variables included in global_expression must already exist in a project loaded in memory. If an object is referenced, the object must be instantiated.

Parameters

global_expression

A required parameter that evaluates to a numeric or String value. This expression may include constants, global variables, and most system functions or properties. It may not reference user-defined functions.

project_name

An optional parameter that specifies the name of the project in which any global variables referenced by global_expression are defined. If omitted, all projects are searched alphabetically and the first matching variable is assumed. All variables must be in the same project.

Remarks

This command permits an expression that contains global variables to be displayed from outside a project, for example, from a separate project or from an external interface such as GDE.

If a String value is displayed, it may be arbitrarily long.

In general, the Show Global command will display any expression that can be set by the Set Global command.

Examples

Assume you have executed the following program:

Module GPL
Public l1 As New Location
Public
i1 As Integer
Public
s1 As String
Public Sub
Main
l1.XYZ(10.25)
i1 = 84
s1 = "Test string"
End Sub
End Module


The following commands would display as follows:

GPL: show global l1.X
10.25
GPL: show global GPL.i1
84
GPL: show global Chr(i1)
T
GPL: show global s1
Test string
GPL: show global Math.Sqrt(16)
4

See Also

Console Commands | Set Global Command