Função para converter iniciais do nome em maiúscula
Function UpperNome(const Nome: String): String; var
x : Integer;
lista : Array[0..4] ofString[03];
function NaoAchaPreposicao(Palavra : String): Boolean; var
x : Integer; begin
Result := True; for x := 0 to 4 do if Trim(Palavra) = lista[x] then
Result := False; end; begin
Result := Nome;
Result := UpCase(Result[1]) + Copy(Result, 2, Length(Result));
for x := 2 to Length(Nome) dobegin if Nome[x] = #32 then if Copy(Nome,x+1,1) <> 'e' then if NaoAchaPreposicao(Copy(Nome,x+1,3)) then
Result := Copy(Result, 1, x)
+ UpCase(Result[x+1])
+ Copy(Result, x+2, Length(Result)); end; end;