Promotic
WikipediaLinkedInYoutubeTwitterFacebook

InfoAction - method of object Pm

Description:
Calling the action over the selected item of the INFO system
Syntax:
InfoAction(sInfoPath As String, sInfoName As String, nAction As Long) As Boolean
Calling:
Pm.InfoAction sInfoPath, sInfoName, nAction
Parameters:
sInfoPath(String) Path to the INFO item. It is for example "COMM/PmModbusMr_0" for communication.
sInfoName(String) Name of the INFO item, which is the name of the page in the INFO system. It is for example "Monitor" for "COMM/driver" item.
nAction(Long) Action number that has to be carried out over the item. Only the value 0 is reasonable in the meantime.
Return Values:
Returns true on success, otherwise false.
Note:

by the right mouse button it is possible to open the local menu over some pages in the INFO system window and then to start an action in this menu. There can be even more actions in the menu. If we index the actions from 0, then a number can be assigned to each action. The InfoAction method enables to start the action (by setting its number) from the script.

The method has the practical exercise so far only for the items that enable cleanup (erasing the content). These actions are in the INFO items as for example Debug_info, "COMM/driver" - "Monitor" page, etc. These actions are always in the first place of the menu and hence they have the number 0.

 
This method is not functional for Web Panels.
Example:
Cleaning up all rows in the item Debug_info in the "Debug1" page
Pm.InfoAction "Debug_info", "Debug1", 0
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- InfoAction
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice