Skip to main content
Version: Next

METHOD OPEN PATH

METHOD OPEN PATH ( path {; line}{; *} )

ParameterTypeDescription
pathText🡒Path of method to open
lineNumber🡒Line number
*Operator🡒If passed = command applies to host database when executed from a component (parameter ignored outside of this context)

Description

The METHOD OPEN PATH command opens, in the 4D Method editor, the method whose internal pathname is passed in the path parameter.

The command is asynchronous, it returns immediately to the calling method and does not wait for the method editor to be open.

This command can open all method types and class functions. For more details, see Path syntax.

The method must already exist. If the path parameter does not correspond to an existing method, the error -9801 "Cannot open method" is returned.

You can execute this command from a component, but in this case, you must pass the * parameter because access to the component code is read-only. If you omit the * parameter in this context, the error -9763 is generated

See also

Design Object Access Commands
METHOD Get path