RightAfterChStr Function
Returns the substring consisting of the characters from S after but not including the specified one.

Unit
QESBPCSConvert

Declaration
Function RightAfterChStr(const S: string; const Ch: Char): string;

Description
If the specified character is not found then a null string is returned. Also See: RightAfterStr, LeftTillChStr, RightTillChStr

Parameters
the String from which the right substring is to be taken.
Ch the character that is searched for.

Category
Extra String Handling Routines

Implementation

function RightAfterChStr (const S: string; const Ch: Char): string;
var
     M: LongWord;
begin
     M := ESBPosCh (Ch, S); // Find first position of Character
     if M = 0 then
          Result := '' // If not found then return ''
     else
          Result := RightAfterStr (S, M); // Return the Right portion
End;


HTML generated by Time2HELP
http://www.time2help.com