This project holds standard libraries and include files for TxAce projects.
function include :: Include after the end statement of a main script
getparm(parmfile)
getparm() maps parameter definitions from a CMHC parameter file to variable in the calling script, by name.
varname value
example
callscript myscript
This is the equivalent of the uscript statement of
callscript = "myscript".
varname-arrayindx value
example
callscript-1 myscript
callscript-2 anotherscript
This is the equivalent of the uscript statement of
callscript[1] = "myscript"
callscript[2] = "anotherscript"
varname-indexY-indexX value
example
dstname-1-1 c.fn
dstname-1-2 c.ln
dstname-2-1 c.bd
Is the equivalent of the uscript statements of
dstname[1,1] = "c.fn"
dstname[1,2] = "c.ln"
dstname[2,1] = "c.bd"
note getparm assumes that the variable being assigned have been previously declared in the script. Any parameters that attempt to assign undeclared variables are silently ignored.
function include :: Include after the end statement of a main script
getoption(option)
getoption() checks the option argument for options that match the script variable names if a match is found the option value is converted to the script's variable type and the variable is updated with that value.
Variable name and values are delimted by a \`` and variable name:value pairs are delimited by a ;`
variable name`variable value;var name`var value;
example
callscript`myscript;dstname-1-1`c.fn;dstname-1-2`c.ln;dstname-2-1`c.bd;
Is the equivalent of the uscript statements of
callscript = "myscript"
dstname[1,1] = "c.fn"
dstname[1,2] = "c.ln"
dstname[2,1] = "c.bd"
IMPORTANT NOTE This function allows you to override the optend and optdelim values in the option string to allow you to not have to reformat the option string to match the prescribed delims
example
option = "optend`|;optdelim |v1 example1|v2 example 2"
This changes optend = "|" and optdelim = " ", which will result in the following statements
v1 = "example1"
v2 = "example 2"
string clientid
screen to allow the user to select a client id
"Y" or !dp
Displays screen to get 'are you sure' confirmation from the user. Warning message that data will not be saved is displayed.
null
Creates screen to display the list of strings in errors[] array as 'errors'. The HeaderYN argument controls the display of the ClientPageHeader: if HeaderYN != "N" then the ClientPageHeader will display
null
Writes an html table to 'current' form to display the name and id of CID
Note you must call the function inbetween $form() and $sendform() functions
DNP
Writes an html table to 'current' form to display the event data passed in through the arguments
Note you must call the function inbetween $form() and $sendform() functions