Hi again,
var
valor:variant;
begin
valor:=edit1.text;
case combobox1.itemindex of
0:begin
case combobox2.itemindex of
0:begin
application.messagebox('Inserta monedas distintas','Error',0);
end;
1:begin
edit2.Text:=valor*166.386;
end;
end;
end;
1:begin
case combobox2.itemindex of
0:begin
valor:=edit2.text;
edit1.text:=valor*0,006010121;
end;
1:begin
application.messagebox('Inserta monedas distintas','Error',0);
end;
end;
end;
end;
After execute that (in a button), the program says me "Invalid variant operation", do you know why?