1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | function getDescricaoEstado(uf:string) : string; begin if uf = 'PR' then result := 'Parana' else if uf = 'SC' then result := 'Santa Catarina' else if uf = 'RS' then result := 'Rio Grande do Sul' else if uf = 'SP' then result := 'São Paulo' else if uf = 'RJ' then result := 'Rio de Janeiro' else if uf = 'AC' then result := 'Acre' else if uf = 'RO' then result := 'Rondonia' else if uf = 'MS' then result := 'Mato Grosso do Sul' else if uf = 'AL' then result := 'Alagoas' else if uf = 'AM' then result := 'Amazonas' else if uf = 'AP' then result := 'Amapa' else if uf = 'CE' then result := 'Ceara' else if uf = 'BA' then result := 'Bahia' else if uf = 'DF' then result := 'Distrito Federal' else if uf = 'ES' then result := 'Espirito Santo' else if uf = 'GO' then result := 'Goiais' else if uf = 'MA' then result := 'Maranhao' else if uf = 'MT' then result := 'Mato Grosso' else if uf = 'MG' then result := 'Minas Gerais' else if uf = 'PA' then result := 'Para' else if uf = 'PB' then result := 'Paraiba' else if uf = 'PE' then result := 'Pernambuco' else if uf = 'PI' then result := 'Piaui' else if uf = 'RN' then result := 'Rio Grande do Norte' else if uf = 'RR' then result := 'Roraima' else if uf = 'SE' then result := 'Sergipe' else if uf = 'TO' then result := 'Tocantins' else result := uf; end; |
quarta-feira, 16 de agosto de 2017
Função getDescricaoEstado a partir de uma sigla de estado
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário