ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Reflection functions
  • Properties specific to the description of Procedure Description variables
  • Call to method
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The Procedure description type is used to get information about a class method.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
// Retrieves the definition of type class of variable x
MyDefinition is Definition
MyDefinition = GetDefinition(x)
 
// Retrieves the description of Calc method
MyProcedure is procedure Description
MyProcedure = MyDefinition.Procedure["Calc"]
Remarks

Properties specific to the description of Procedure Description variables

The following properties can be used to handle a Procedure Description variable:
Property nameType usedEffect
AssociatedBoolean
  • True if the method comes from an associated class,
  • False if the meethod comes from a base class.
DeclarationDefinitionDefinition of the class that contains the method.
This property is read-only.
GlobalBoolean
  • True if the method is global,
  • False otherwise.
This property is read-only.
InheritedBoolean
  • True if the method is inherited from a base class,
  • False otherwise.
This property is read-only.
NameCharacter stringMethod name.
This property is read-only.
VirtualBoolean
  • True if the method is virtual,
  • False otherwise.
This property is read-only.

Call to method

The method whose description was retrieved can be called by ExecuteProcess.
  • Call to a static method
    p is Procedure Description
    p = ...
    ExecuteProcess(Null, p, <param1>, <param2>, ...)
  • Call to a method of instance
    p is Procedure Description
    p = ...
    ExecuteProcess(<object variable>, p, <param1>, <param2>, ...)
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 08/22/2022

Send a report | Local help