DUVIDA NO CAMANDO IF
gostaria de saber como colocar dois itens no comando IF THEN.
do jeito que eu faço, dá erro, faço assim: (por exemplo)
If Text1.Text = [txt-color=red]"1" and "2"[/txt-color] then
Label1.caption = "carro bom"
end if
como faço isso?!?
do jeito que eu faço, dá erro, faço assim: (por exemplo)
If Text1.Text = [txt-color=red]"1" and "2"[/txt-color] then
Label1.caption = "carro bom"
end if
como faço isso?!?
Tente colocar este comando
If Text1.Text = "1" Or Text1.Text = "2" Then
Label1.Caption = "carro bom"
Else
Label1.Caption = "carro ruim"
End If
Falou
If Text1.Text = "1" Or Text1.Text = "2" Then
Label1.Caption = "carro bom"
Else
Label1.Caption = "carro ruim"
End If
Falou
Tópico encerrado , respostas não são mais permitidas