Skip to content

_method

bergsma edited this page Sep 26, 2014 · 5 revisions

#method

###Returns the name of the currently executing "message" method.

Syntax

name = method ;

Arguments

  • None

Return Value

str name
  • methodName : The method name as a string.

The STATUS variable is set to $ACKNOWLEDGE

str name
  • methodName : The method name as a string.

The STATUS variable is set to $ACKNOWLEDGE

Exceptions

  • %ARGUMENT: Invalid arguments. Usage: name = method ;

Description

The current method name refers to the method invoked by the last incoming EVENT or QUERY message. If the HyperScript program was self-started, without a message, then the method name is always "main". Calling a method in a HyperScript program statement does not affect or change the current method name.

Examples

put ( "Currently processing " + method () ) ;

Related Links

mode
self
sender

Clone this wiki locally