Fórum Que tipo de variavel eu coloco para usar como conjunto ? #267831
09/02/2005
0
if 1 in VARIAVEL then
Muito grato desde já!
Programadorjlle
Curtir tópico
+ 0Posts
09/02/2005
Marcio.theis
Gostei + 0
09/02/2005
Programadorjlle
if 1 in VARIAVEL then ´QUALQUER TIPO DE VARIAVEL DA ERRRADO´
Queria saber substituo o conjunto por uma variavel ?
[quote:7fe27daa70=´/]/]@t´]Você poderia explicar melhor?[/quote:7fe27daa70]
Gostei + 0
09/02/2005
Marcio.theis
if 1 in [variavel..variavel2] then
mas
if 1 in [variavel] then
somente se for exatamente igual a sua variável.
Gostei + 0
09/02/2005
Programadorjlle
var
axSTR : String;
begin
axSTR := ´0,1,2,3´;
if 1 in [axSTR] then begin
end;
end;
[quote:44a1738317=´/]/]@t´]O que eu acredito que se possa fazer é o seguinte:
if 1 in [variavel..variavel2] then
mas
if 1 in [variavel] then
somente se for exatamente igual a sua variável.[/quote:44a1738317]
Gostei + 0
09/02/2005
Vprates
Var Stl : TStringlist;
I: Integer;
Begin
Stl := TStringlist.create;
stl.Texte := String1, String2, etc...
For I:=0 to Stl.count-1 do
if 1 in stl[I] then
faz oque vc precisa;
Não testei mas acho que eh isso...
vlw
Gostei + 0
09/02/2005
Nildo
http://forum.clubedelphi.net/viewtopic.php?t=58384
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)