SIMPOL Documentation

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 sInput, string sSearch )

Parameters

ParameterDefault valueType nameDescription
sInputNonestring
sSearchNonestring