Fórum If com multiplas strings... #153514
09/04/2003
0
If ComboBox1.Text = ´texto1´ or ´texto2´ then
O que está errado? Como corrigir?
Agradeço qualquer ajuda...
Obrigado.
Inutaishou
Curtir tópico
+ 0Posts
09/04/2003
Tiocassio
Gostei + 0
09/04/2003
Hhhhhh
if (ComboBox1.Text = ´texto1´) or (Combo1Box.Text = ´texto1´) then
Gostei + 0
09/04/2003
Inutaishou
Gostei + 0
08/02/2004
Thesanto
procedure TF_Bus.SpeedButton1Click(Sender: TObject);
begin
if ComboBox_Opcao.Items = ´Cliente´ then
begin
F_BCli.showmodal;
end;
end;
Gostei + 0
08/02/2004
Alysson
Items do Combobox é StringList....
pra verificar os items do ComboBox vc faz assim:
if combobox.items.text = ´Cliente´ then
begin
end;
ou para verificar o item selecionado:
if lowercase(combobox.text) = lowercase(´Cliente´) then
begin
end;
// é bom por Lowercase, pois deixa tudo minúsculo. no delphi
´Alguem´ é diferente de ´alguem´
bota minusculo em tudo pra a verificação ser melhor
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)