Código
const
Estados = 'SPMGRJRSSCPRESDFMTMSGOTOBASEALPBPEMARNCEPIPAAMAPFNACRRRO';
var
Posicao : integer;
begin
Result := true;
if Dado <> '' then
begin
Posicao := Pos(UpperCase(Dado),Estados);
if (Posicao = 0) or ((Posicao mod 2) = 0) then
begin
Result := false;
end;
end;
end;
Planeta Delphi - www.planetadelphi.com.br - Todos os direitos reservados | Copyright 2001-2009