Reference Guide > T Routines > TmListSetMethod Procedure
  

TmListSetMethod Procedure
Sets the method procedure name for a specific list method.
Usage
TmListSetMethod, tool_name, list_name, method_name, method
Input Parameters
tool_name—A string specifying the unique name of a VDA Tool.
list_name—A string specifying the unique name of a list.
method_name—A string specifying the name of the method to override.
method—A string specifying the name of the procedure to execute when method_name is requested.
Keywords
None.
Discussion
This routine overrides the default method procedure provided for the following Default Method Procedures.
 
Table 17-3: Default Method Procedures
Description
Method Name
Method Procedure
Extend a list
TM_LIST_EXTEND
TmListExtend
Append to a list
TM_LIST_APPEND
TmListAppend
Insert in a list
TM_LIST_INSERT
TmListInsert
Retrieve from a list
TM_LIST_RETRIEVE
TmListRetrieve
Replace a list element
TM_LIST_REPLACE
TmListReplace
Delete (Undo) previous change to a list
TM_LIST_DELETE
TmListDelete
Clear list elements
TM_LIST_CLEAR
TmListClear
Destroy list elements
TM_LIST_DESTROY
TmListDestroy
 
note
Code for the default list method procedures are contained in the file, where WAVE_DIR is the main PV‑WAVE directory.
(UNIX) WAVE_DIR/lib/vdatools/tmlist.pro
(WIN) WAVE_DIR\lib\vdatools\tmlist.pro
When overriding a method, you are responsible for properly updating the associated attributes to reflect the desired change.
Example
See the example for TmListGetMethod.
See Also
TmList, TmListGetMethod

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.