beforestr()
Description
This function searches the input string for the search string and if it is found, returns the text up to and including the search text from the left of the string. If it does not find the search text it returns the whole string.
Prototype
beforestr
(
string
,
string sInput
)
sSearch
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
sInput | None | string | |
sSearch | None | string |