Chapter Contents

Previous

Next
Object Class: _changeMethod

Object Class: _changeMethod



Changes a method's metadata on a class or object


Syntax
Details

Syntax

return = objectName._changeMethod( methodName,metadataList,returnMethodID );
return = objectName._changeMethod( methodID,metadataList,returnMethodID );

Argument Type Use Description
return Numeric Return returns a value indicating whether the method was successfully changed: 0 if successful, 1 if not successful
methodName Character Input specifies the name of the method you want to change
metadataList List Input specifies a list containing name items for the method metadata to change
returnMethodID Numeric Output returns a unique number assigned to the changed method
methodID Numeric Input specifies the unique number assigned to the method you want to change. Useful when working with an overloaded method to identify the correct method


Details

If a method has only one signature, you can use either _changeMethod signature, _changeMethod(methodName) or _changeMethod(methodID). For methods that have multiple signatures, the following rules apply:

When changing a NEW method, any item can be changed if performed on a class ID instead of an instance. If you change an instance (per-instance) method, you cannot change the SCOPE; it is always PUBLIC on instance methods.

When using _changeMethod to override an INHERITED method:

SAS/AF software returns the new methodID of the method if you use _changeMethod to override an inherited method. For example, if someMethod is an inherited method whose id is 806 and _changeMethod is run to override it, the someMethod method is overridden and a new id is returned via the methodID argument.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.