Fórum maiúsculo no dbgrid... #288195
15/07/2005
0
como eu faço para forçar a entrada de um caracter maiúsculo no DBGRID...???
quero que usuário digite ´S´ ou ´N´ e não ´s´ ou ´n´
obrigado
Rafael Santana
Curtir tópico
+ 0Posts
15/07/2005
Guilherme
Gostei + 0
15/07/2005
Paullsoftware
if Table1Sexo.AsString = ´m´ then Table1Sexo.AsString := ´M´ else if Table1Sexo.AsString = ´f´ then Table1Sexo.AsString := ´F´; end;
pode ser que isso resolva :roll:
Gostei + 0
15/07/2005
Paullsoftware
Solução eficas e simples... basta mudar o meu códido por esse que tb funciona e mais simples...:
Table1Sexo.Value := UpperCase(Table1Sexo.Value);
[b:5e58e26a0e] :twisted: gborges_13... :twisted: [/b:5e58e26a0e]
valeu..
Gostei + 0
15/07/2005
Rjun
Gostei + 0
15/07/2005
Rafael Santana
;)
Gostei + 0
15/07/2005
Guilherme
Gostei + 0
19/07/2005
Paullsoftware
Table1Sexo.Value := UpperCase(Table1Sexo.Value);
if Table1Sexo.AsString = ´m´ then Table1Sexo.AsString := ´M´ else if Table1Sexo.AsString = ´f´ then Table1Sexo.AsString := ´F´; end;
qq um dos dois funciona:
coloca no evento BerforePost e funfa legal...
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)