DlgStaticText.SetProperties

DlgStaticText.SetProperties ( 

number ControlID,

table  Properties )

Description

 Sets the properties of a static text control on the current screen.

Note: This action will only work if called from a screen's events and if the named control is on the current screen.

Parameters

ControlID

(number) The numeric ID of the static text control whose properties you want to set.

Properties

(table) A table containing the static text control properties indexed by the following keys:

KEY

TYPE

DESCRIPTION

Text

string

The static text you want to appear in the control. For example, tb.Text="Sample Text" or {Text="Sample Text"}.

Visible

boolean

Sets the visibility of the static text control. True means it will be visible and false means it will be invisible. For example, tb.Visible=true or {Visible=true}.

Note: All changes will be made immediately and only the properties that you want to change need to be set.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also:  Related Actions