Show PowerScript function
Description
Makes an object or control visible, if it is hidden. If the
object is already visible, Show brings it to
the top.
Controls
Any object
Syntax
1 |
<span>objectname</span>.<span>Show</span> ( ) |
Argument |
Description |
---|---|
objectname |
The name of the object or control you |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs. If objectname is null, Show
returns null.
Usage
If the specified object is a window that is not open, an execution
error occurs.
You cannot use Show to show a drop-down
or cascading menu, or any menu that has an MDI frame window as its
parent window.
Equivalent syntax
You can set the object’s Visible property instead
of calling Show:
1 |
<span>objectname</span>.Visible = true |
This statement:
1 |
m_status.m_options.Visible = TRUE |
is equivalent to:
1 |
m_status.m_options<span>.Show</span>() |
Examples
This statement makes visible the menu selection called m_options on
the menu m_status:
1 |
m_status.m_options.<span>Show</span>() |
This statement makes the child window w_child visible:
1 |
w_child.<span>Show</span>() |