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....



SplitString


Unit:SDL_stringl
Class: none
Declaration: procedure SplitString (InString, Delimiter: string; StripBlanks: boolean; var Str1, Str2: string);

The procedure SplitString splits the string Instring into two halves. The string Delimiter specifies the separator. The characters before Delimiter are copied into string Str1, the characters after the Delimiter into string Str2. If the Delimiter is not found the variables Str1 and Str2 return empty strings.

Further, if StripBlanks is TRUE any leading or trailing blanks are stripped off Str1 and Str2.



Last Update: 2020-Jul-11