Template Functions
The following functions are defined in TTemplateApplication.
- ARNAME(Filename)
- Builds an archive name from Filename.
- BASENAME(Filename)
- Removes directory from Filename.
- CAPITALIZE(S)
- Returns S with all characters changed to lowercase except those following a space or an underscore wich are changed to uppercase.
- CHANGEDIR(Filename, Dir)
- Replaces directory part of Filename by Dir.
- CHANGEEXT(Filename, Ext)
- Replaces extension part of Filename by Ext.
- CONCAT(S1, S2, ..., Sn)
- Concatenates strings from S1 to Sn.
- CONTRACT(S)
- Returns S with all suites of spaces changed to a single space.
- COPY(S, From, Len)
- Same behavior as the pascal function.
- DIRNAME(Filename)
- Returns the directory part of Filename.
- EQ(P1, P2)
- Returns "TRUE" if P1 and P2 are equal and "FALSE" otherwise.
- EVAL(S)
- Evaluates S as a template and returns the result.
- EXENAME(Filename)
- Builds an executable name from Filename.
- EXTENSION(Filename)
- Returns the extension of Filename.
- FOREACH
-
- IFTHEN(AValue, ATrue, AFalse = "")
- Returns ATrue if UPPERCASE(AValue) equals "TRUE" else returns AFalse.
- JOINPATHS(E1, E2, ..., En)
- Concatenates E1 to En to a single path.
- LEFTSTR(S, N)
- Returns the leftmost N characters of S.
- LIBNAME(Filename)
- Builds a library name from Filename.
- LIST(S1, S2, ..., Sn)
- Builds a list.
- LOWERCASE(S)
- Returns a copy of S with all of the letters converted to lower case.
- NEQ(P1, P2)
- Returns "TRUE" if P1 and P2 are not equal and "FALSE" otherwise.
- QUOTE(S, Qt = "'")
- Returns S surrounded by Qt and with each occurrence of Qt replaced by 2 Qt characters. If Qt has more than one character then only the first one is used.
- RIGHTSTR(S, N)
- Returns the rightmost N characters of S.
- SET(Name, Value)
- Sets the value of variable Name to Value. If the variable has not been declared previously, it is created as a local variable. SET always returns an empty string.
- SLICE(S, Left, Right)
- Returns the substring of S starting at Left and ending at Right.
- SORT(S)
- Sorts the words of S removing duplicates.
- STRTOPAS(S)
- Returns a pascal representation of S.
- TRIM(S)
- Same behavior as the pascal function.
- UPPERCASE(S)
- Returns a copy of S with all of the letters converted to upper case.
- WILDCARDS(S)
-