Procedures and functions
In general, the procedures and functions of mmsystem do not fail but set a status variable that can be read with getsysstat. To make sure the operation has been performed correctly, check the value of this variable after each system call.
addmonths |
Add a number of months to a date or datetime.
|
compareic |
Compare 2 text strings ignoring case.
|
copytext |
Copy a part of a text or string.
|
cuttext |
Cut a part of a text returning a copy of the deleted string.
|
deltext |
Delete a part of a text.
|
endswith |
Check whether a text or string ends with a given string.
|
erase |
Securely deletes the content of a text entity.
|
expandpath |
Expand a path or file name.
|
fcopy |
Copy a file.
|
fdelete |
Delete a file.
|
findfiles |
Search for files according to file name patterns.
|
findtext |
Search for a string in a text or string.
|
fmove |
Rename or move a file.
|
formattext |
Create a text from a format string and its parameters.
|
getasnumber |
Convert a date, time or datetime into a number.
|
getchar |
Get a character in a string or text.
|
getcwd |
Get the current working directory.
|
getdate |
Get the date part of a datetime.
|
getday |
Get the day number in the month of a date or datetime.
|
getdaynum |
Get the day number in the year of a date or datetime.
|
getdays |
Get the number of days of a month.
|
getdirsep |
Get the directory separator of the running operating system.
|
getdsoparam |
Get the value of a control parameter.
|
getendparse, setendparse |
Get and set endparse property of a parser context.
|
getenv |
Get the value of an environment variable.
|
getfsize |
Get the size of a file.
|
getfstat, getflstat |
Get the status of a file or directory.
|
getftime |
Get time information of a file.
|
gethour |
Get the hour part of a time or datetime.
|
getminute |
Get the minute part of a time or datetime.
|
getmonth |
Get the month number of a date or datetime.
|
getmsec |
Get the millisecond part of a time or datetime.
|
getoserrmsg |
Get the message associated to a system error code.
|
getoserror |
Get the system error code of the last command.
|
getpathsep |
Get the path separator of the running operating system.
|
getqtype, setqtype |
Get and set qtype property of a parser context.
|
getsecond |
Get the second part of a time or datetime.
|
getsepchar, setsepchar |
Get and set sepchar property of a parser context.
|
getsize |
Get the size of a text.
|
getstart, setstart |
Get and set start property of a text area.
|
getsucc, setsucc |
Get and set succ (position of successor character) property of a text area.
|
getsysinfo |
Get information about the running operating system.
|
getsysstat |
Get the system status.
|
gettime |
Get a time measure or the time part of a datetime.
|
gettmpdir |
Get the temporary directory as a text object.
|
gettrim, settrim |
Get and set trim property of a parser context.
|
getweekday |
Compute the day of the week for a date or datetime.
|
getyear |
Get the year part of a date or datetime.
|
inserttext |
Paste a text or string into a text.
|
isvalid |
Check whether a date, time or datetime is valid.
|
jointext |
Merge elements of a list or set into a text string.
|
makedir |
Create a new directory in the given file system.
|
makepath |
Create a new directory including its parents if necessary.
|
newtar |
Create a Unix tar archive from a list of files.
|
newzip |
Create a Zip archive from a list of files.
|
nextfield |
Advance to next field in a structured text string.
|
openpipe |
Start an external process for bidirectional communication.
|
parseextn |
Initialise an object of a module type from a text.
|
parseint |
Convert a text into an integer.
|
parsereal |
Convert a text into a real.
|
parsetext |
Extract a text from a text.
|
pastetext |
Paste a text or string into a text.
|
pathmatch |
Check whether a file name matches a given pattern.
|
pathsplit |
Split a path into its components.
|
qsort |
Sort a list or an array or (a subset of) the indices of an array.
|
quote |
Quote and encode a text string.
|
readlink |
Get the value of a symbolic link.
|
readtextline |
Read a line of text from the current input stream.
|
regmatch |
Compare text strings using a regular expression.
|
regreplace |
Replace portions of a text string based on a regular expression.
|
removedir |
Remove a directory.
|
removefiles |
Remove files selected using file name patterns.
|
setchar |
Set a character in a text.
|
setdate |
Set the date part of a datetime.
|
setday |
Set the day number of a date or datetime.
|
setdsoparam |
Set the value of a control parameter.
|
setenv |
Set the value of an environment variable.
|
sethour |
Set the hour part of a time or datetime.
|
setminute |
Set the minute part of a time or datetime.
|
setmonth |
Set the month number of a date or datetime.
|
setmsec |
Set the millisecond part of a time or datetime.
|
setoserror |
Set the current system error code.
|
setsecond |
Set the second part of a time or datetime.
|
settime |
Set the time part of a datetime.
|
setyear |
Set the year part of a date or datetime.
|
sleep |
Suspend execution for a fixed amount of time.
|
splittext |
Split a text string.
|
startswith |
Check whether a text or string starts with a given string.
|
symlink |
Create a symbolic link.
|
system |
Execute an external program.
|
tarlist |
Get the list of files included in a Unix tar archive.
|
textfmt |
Create a formatted text from a string, a text or a number.
|
tolower |
Generate the lowercase version of the provided text.
|
toupper |
Generate the uppercase version of the provided text.
|
trim |
Remove blank characters at the beginning and/or end of a text string.
|
untar |
Extract files from a Unix tar archive.
|
unzip |
Extract files from a Zip archive.
|
ziplist |
Get the list of files included in a Zip archive.
|