Add something similar to being able to load functions, but instead for accessing subroutine libraries:
Specify which libraries will be accessed.
LIB_NAME "Library Name" "Full path to library file, no wildcards"
Ex:
LIB_NAME "Date Routines" "C:\Program Files\JPSoft\TCC\Date_Routines_Lib.btm"
LIB_NAME "Name Routines" "C:\Program Files\JPSoft\TCC\Name_Formatting_Routines_Lib.btm"
Specify which routines in the library are available to this btm
LIB_DEF /"Library Name declared in a LIB_NAME" "Routine #1", "Routine #2", "Routine #5"
Ex:
LIB_DEF /"Date Routines" "CCYYMMDD_to_ISODATE", "ISODATE_to_YYMMDD"
LIB_DEF /"Name Routines" "Last_comma_First", "First_Mid_Last"
Call the pre-identified routine from the .btm
LIBRARY "Routine name" parm 1, parm 2
Ex:
LIBRARY Last_comma_First "Harry", "Johnson"
LIBRARY MMDDYY_to_ISODATE 111807
Error: Library Routine MMDDYY_to_ISODATE undefined
(Even if the "Date Routines" library does have that subrou, because it wasn't identified in LIB_DEF)
You would probably want a different term than "undefined".
Specify which libraries will be accessed.
LIB_NAME "Library Name" "Full path to library file, no wildcards"
Ex:
LIB_NAME "Date Routines" "C:\Program Files\JPSoft\TCC\Date_Routines_Lib.btm"
LIB_NAME "Name Routines" "C:\Program Files\JPSoft\TCC\Name_Formatting_Routines_Lib.btm"
Specify which routines in the library are available to this btm
LIB_DEF /"Library Name declared in a LIB_NAME" "Routine #1", "Routine #2", "Routine #5"
Ex:
LIB_DEF /"Date Routines" "CCYYMMDD_to_ISODATE", "ISODATE_to_YYMMDD"
LIB_DEF /"Name Routines" "Last_comma_First", "First_Mid_Last"
Call the pre-identified routine from the .btm
LIBRARY "Routine name" parm 1, parm 2
Ex:
LIBRARY Last_comma_First "Harry", "Johnson"
LIBRARY MMDDYY_to_ISODATE 111807
Error: Library Routine MMDDYY_to_ISODATE undefined
(Even if the "Date Routines" library does have that subrou, because it wasn't identified in LIB_DEF)
You would probably want a different term than "undefined".
Last edited: