Current method name

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 6.7


Current method name String

ParameterTypeDescription
This command does not require any parameters
Function resultStringCalling method name

Description

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
Form Method[TableName]FormName
Object Method[TableName]FormName.ObjectName

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 application Preferences) 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).

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next