Página inicial Delphi Função: Validar UF - Códigos Delphi Função: Validar UF - Códigos Delphi Autor: EcomRepair abril 12, 20160 Min. de Leitura 0 Função: Validar UF // Testa se a UF é Válida ou Não Código function ValidarEstado(Dado : string) : boolean; 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; Aponte a Câmera no QR Code ☯️Gerar QRCode ❌Error! Seu QRCode Não Carregou. Verifique o Campo e Tente Novamente!! Tags CódigosDelphi Facebook Twitter Whatsapp Mais recentes Antigos