Fórum Como faço esta função #257033
03/11/2004
0
if variavel ´CANC´ OR ´DESC´ OR ´I´ OR ´T´ then
begin
minha rotina
end;
mas quando vou compilar da a seguinte msn:
[Error] Unit1.pas(1533): Operator not applicable to this operand type
Fábio Galvão
Curtir tópico
+ 0Posts
03/11/2004
Xtreme
(variavel ´DESC´) and
(variavel ´I´) and
(variavel ´T´) then
begin
minha rotina
end;
Gostei + 0
03/11/2004
Paulo_amorim
Ou ainda:
if not (variavel in [´CANC´, ´T´, ´I´, ´DESC´] ) then ...
Até+
Gostei + 0
03/11/2004
Gilvanj
if not (variavel in [´CANC´, ´T´, ´I´, ´DESC´] ) then ...
O operador ´in´ somente está disponível para tipos de dados byte, char e enumerações. O código acima não compila no Delphi.
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)