Topic complex |
Ramtext functions |
Function |
ramtext_find() |
Short |
Searches for a string in a ramtext |
Syntax |
ramtext_find(ramtext : STRING; target : STRING [,startpos[,mode] : INTEGER]) : INTEGER |
Parameter |
ramtext : name of ramtext in the form "ramtext:..."
target : search string (without wild cards!)
startpos: position, where the search starts from (default=1)
mode : 0 (default) case-sensitive
1 case-insensitive |
Return |
0 : target not found
else: position of the first character of the consonance |
See also: |
|
Description |
With this function you can search a string in a ramtext. The optional parameter startpos specifies the offset in the ramtext, where the search starts from. The return value is the postition of the first character of the consonance (Looking from the beginning of the ramtext) or 0, if the string is not found.
The function is about the function pos at normal strings. 0 is also the result if the start value is behind the filesize of the actual ramtext.
|