Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Methods - property of object Pm

Description:
The property returns the object, that is used for accessing the application global methods defined on the Methods page of the PmRoot object.
Syntax:
Methods As Object
Calling:
Pm.Methods.method1 par1, par2 ...
Note:
Property access for read only. The property itself cannot be changed (it is "read only"), but the called method can change anything by its algorithm.
 
Calling the global methods by this property can also be used in graphic item events, that are designed for Web panels. Calling the global methods via WEB is protected by permissions WebMethods.
 
Since the PROMOTIC 8 version the global methods can not be called directly only by method name. This old way of method calling can be explicitly enabled, see #pragma option OldGlobalMethodCall. The direct method calling technique is less general (e.g. not working for Web panels) and therefore is not recommended.
Example:
See example in description of Methods page.
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- Methods
 
 
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice