Ver Mensaje Individual
  #2  
Antiguo 12-11-2012
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
No sé si exista alguna función predefinida pero en todo caso es muy sencillo hacerse de una:

Código Delphi [-]
function LastPos(S: String; Ch: Char): Integer;
var
  I: Integer;

begin
  Result := 0;

  if S = '' then
    exit;

  for I := Length(S) downto 0 do
    if S[i] = Ch then
    begin
      Result := I;
      break;
    end;
end;

// Saludos
Responder Con Cita