Letras Maiusculas...Minusculas...
Estou com um problema....tenho um edit que coloca todas as primeiras letras de cada palavra em maiusculas, mássssss tenho um problema..Por exemplo ´´Maria Das Graças´´´ o ´´´Das´´´ também ficou maiuscula, e isso ficou bastante feio... será que dá para resolver?///hehehehe :lol:
Aki segue o código se alguém poder ajudar...
procedure T_FormContas.Edit1Change(Sender: TObject);
var
OldStart : Integer;
x : Integer;
begin
With ComboBox1 do
if Text <> ´´ then
begin
OnChange := nil;
OldStart := SelStart;
Text := UpperCase(Copy(Text,1,1))+LowerCase(Copy(Text,2,Length(Text)));
for x := 1 to Length(Text) do
begin
if Copy(Text,x,1) = ´ ´ then
Text := copy(text,1,x) + UpperCase(Copy(Text,x+1,1)) + copy(text,x+2,Length(Text))
end;
SelStart := OldStart;
OnChange := ComboBox1Change;
end;
end;
Aki segue o código se alguém poder ajudar...
procedure T_FormContas.Edit1Change(Sender: TObject);
var
OldStart : Integer;
x : Integer;
begin
With ComboBox1 do
if Text <> ´´ then
begin
OnChange := nil;
OldStart := SelStart;
Text := UpperCase(Copy(Text,1,1))+LowerCase(Copy(Text,2,Length(Text)));
for x := 1 to Length(Text) do
begin
if Copy(Text,x,1) = ´ ´ then
Text := copy(text,1,x) + UpperCase(Copy(Text,x+1,1)) + copy(text,x+2,Length(Text))
end;
SelStart := OldStart;
OnChange := ComboBox1Change;
end;
end;
Gigatel
Curtidas 0
Respostas
Gigatel
09/01/2004
MEEEEEESTREEEEEEEEEEE.... Muito Obrigado ...Valeu mesmo... se precisar de ajuda ( duvido ) estamos na área ...
Valeu
Gilmar C. Moraes
Valeu
Gilmar C. Moraes
GOSTEI 0
Lucasnishimura
09/01/2004
Poderia compartilhar o codigo com um nobre amigo ?
GOSTEI 0