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

Home

 
4D v20 R7
METHOD OPEN PATH

METHOD OPEN PATH 


 

METHOD OPEN PATH ( path {; line}{; *} ) 
Parameter Type   Description
path  Text in Path of method to open
line  Number in Line number
Operator in If passed = command applies to host database when executed from a component (parameter ignored outside of this context)

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

 
PROPERTIES 

Product: 4D
Theme: Design Object Access
Number: 1213

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v13
Modified: 4D v19

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)