Method Properties

You specify the properties for a method by selecting its entry in the resource editor.

Property

Description

Name

Name of the method that identifies a script

Comment

Additional information about the method

The Method Script tab contains the body of the method function.

The Global Script tab is used for sharing library functions and static attributes in the resource file. This tab is shared with event handlers and transformations.

You can declare global variables on this tab, but you should be aware that they will not be reinitialized each time the method is executed, and keep their value until you modify the resource file, or the PowerDesigner session ends. This may cause errors, especially when variables reference objects that can be modified or deleted. Make sure you reinitialize the global variable at the beginning of a method if you do not want to keep the value from a previous run.

For more information on defining a script and using the Global Script tab, see Defining the script of a custom check and Using the global script.