Cita:
Empezado por wolfran_hack
Código Delphi [-] num1 := FloatToStr(dial.Value); num2 := IntToStr(100); num3 := num1 / num2; TrackBar.Value := num3;
me da de error:
Código:
[DCC Error] Main.pas(212): E2010 Incompatible types: 'Integer' and 'string';
[DCC Error] uMain.pas(213): E2010 Incompatible types: 'string' and 'Integer';
|
Estas intentando guardar un string en un integer
las funcion para passar de string a integer es strtoint
en la variable num2 si assignas directamente 100 no tienes que convertir nada