This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
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
Class ConstructorClassName:constructor
Class FunctionClassName.FunctionName
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, it must not be included in code for which range checking has been disabled. See Range checking.

 
PROPERTIES 

Product: 4D
Theme: Language
Number: 684

This command can be run in preemptive processes

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v6.7
Modified: 4D v18 R3

 
TAGS 

contrôle exécution

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)