TabTriggerEvent PowerScript function
Description
Triggers the specified event for each tab page in a Tab control,
which executes the scripts immediately in the index order of the
tab pages.
Controls
Tab controls
Syntax
|
1 |
<span>tabcontrolname</span>.<span>TabTriggerEvent</span> ( <span>event </span>{, <span>word</span>, <span>long</span> } ) |
|
Argument |
Description |
|---|---|
|
tabcontrolname |
The name of the Tab control for which |
|
event |
A value of the TrigEvent enumerated datatype |
|
word |
A long value to be stored in the WordParm |
|
long |
A long value or a string that you want |
Return Values
Integer. Returns 1 if it succeeds and
-1 if an error occurs, if the event is not a valid event for the
tab page user object, or if a script does not exist for the event.
Examples
Suppose tab_address contains
several tab pages inherited from uo_list and uo_list has
a user event called ue_display. This
statement executes immediately the script for ue_display for
each the tab pages in tab_address:
|
1 |
tab_address.<span>TabTriggerEvent</span>("ue_display") |