Code: strmid - Extract a range of characters from a string Syntax: strmid(dest[], const source[], start=0, end=cellmax, maxlength=sizeof dest)
dest The string to store the extracted characters in. source The string from which to extract characters. start The parameter start must point at the first character to extract (starting at zero). end The parameter end must point behind the last character to extract. maxlength If the length of dest would exceed maxlength cells, the result is truncated to maxlength cells.
Returns: The number of characters stored in dest.
strval - Convert from text (string) to numbers Syntax: strval(const string[], index=0)
string The string containing a number in characters. This may be either a packed or unpacked string. index The position in the string where to start looking for a number. This parameter allows to skip an initial part of a string, and extract numbers from the middle of a string.
Returns: The value in the string, or zero if the string did not start with a valid number (starting at index). |