SOM SubstituteClass: Difference between revisions
Appearance
Created page with "{{DISPLAYTITLE:SOM_SubstituteClass}} This macro provides a convenience macro for invoking the somSubstituteClass method. ==Syntax== <PRE> <token> oldClass; <token> newC..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:SOM_SubstituteClass}} | {{DISPLAYTITLE:SOM_SubstituteClass}} | ||
This macro provides a convenience macro for invoking the somSubstituteClass method. | This macro provides a convenience macro for invoking the somSubstituteClass method. | ||
==Syntax== | ==Syntax== | ||
<token> oldClass; | |||
<token> oldClass; | <token> newClass; | ||
<token> newClass; | SOM_SubstituteClass(oldClass, newClass); | ||
SOM_SubstituteClass(oldClass, newClass); | |||
==Parameters== | ==Parameters== | ||
; oldClass (<token>) : The name of the class to be substituted, given as a simple token rather than a quoted string. | ;oldClass (<token>): The name of the class to be substituted, given as a simple token rather than a quoted string. | ||
;newClass (<token>): The name of the class that will replace oldClass, given as a simple token rather than a quoted string. | |||
; newClass (<token>) : The name of the class that will replace oldClass, given as a simple token rather than a quoted string. | |||
==Return Code== | ==Return Code== | ||
==Remarks== | ==Remarks== | ||
The method [[somSubstituteClass]] requires existing class objects as arguments. Therefore, this macro first assures that the classes named oldClass and newClass exist, and then calls the method [[somSubstituteClass]] with these class objects as arguments. | The method [[somSubstituteClass]] requires existing class objects as arguments. Therefore, this macro first assures that the classes named oldClass and newClass exist, and then calls the method [[somSubstituteClass]] with these class objects as arguments. | ||
==Example Code== | ==Example Code== | ||
Line 22: | Line 20: | ||
==Related== | ==Related== | ||
;Methods | |||
* [[somSubstituteClass]] | * [[somSubstituteClass]] | ||
[[Category:SOM | [[Category:SOM macro]] |
Latest revision as of 02:14, 6 May 2020
This macro provides a convenience macro for invoking the somSubstituteClass method.
Syntax
<token> oldClass; <token> newClass; SOM_SubstituteClass(oldClass, newClass);
Parameters
- oldClass (<token>)
- The name of the class to be substituted, given as a simple token rather than a quoted string.
- newClass (<token>)
- The name of the class that will replace oldClass, given as a simple token rather than a quoted string.
Return Code
Remarks
The method somSubstituteClass requires existing class objects as arguments. Therefore, this macro first assures that the classes named oldClass and newClass exist, and then calls the method somSubstituteClass with these class objects as arguments.
Example Code
See the method somSubstituteClass.
Related
- Methods