The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



ExtractBeforeTrigger


Unit:SDL_stringl
Class: none
Declaration: function ExtractBeforeTrigger (InString, Trigger: string; StripBlanks: boolean): string;

The function ExtractBeforeTrigger searches for the substring Trigger in the string InString and returns the string before the found substring. If the Trigger is not contained in Instring, the function returns an empty string. If StripBlanks is TRUE any leading or trailing blanks in the returned string are removed.



Last Update: 2020-Jul-11