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


Declaration:function StripTrailingChars (cc: char; Instring: string): string;

The function StripTrailingChars returns the string Instring after removing any trailing characters specified by the parameter cc.

Example: The statement "astr := StripTrailingChars ('.', '... to be or not to be.....'); " returns the string "... to be or not to be " to the variable astr.

Last Update: 2012-Oct-20