4D v14.3

Current method name

Home

 
4D v14.3
Current method name

Current method name 


 

Current method name -> Function result 
Parameter Type   Description
Function result  String in Calling method name

The Current method name command returns the method name where it has been invoked. This command is useful for debugging generic methods.

According to the calling method type, the returned string can be as follows:

Calling Method Returned string
Database MethodMethodName
TriggerTrigger on [TableName]
Project MethodMethodName
Table Form Method[TableName].FormName
Project Form MethodFormName
Table Form Object Method[TableName].FormName.ObjectName
Project Form Object MethodFormName.ObjectName
Component Project MethodMethodName
Component Project Form MethodFormName(ComponentName)
Component Project Form Object MethodFormName(ComponentName).ObjectName(ComponentName)

This command cannot be called from within a 4D formula.

Note: For this command to be able to operate in compiled mode, the database must have been compiled with the Range Checking option (located in the Database Settings) selected.
In order to deactivate range checking in a method (or a part of a method) locally, you can use the following special comments:

  `%R- to deactivate range checking
  `%R+ to activate range checking
  `%R* to restore the initial state of range checking (defined in the Preferences).

 
PROPERTIES 

Product: 4D
Theme: Language
Number: 684

 
HISTORY 

Created: 4D v6.7

 
TAGS 

contrôle exécution

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)