Hi,
Does anyone know how to convert Singles to Strings and vice versa?
I'm looking for something like StrToInt or IntToStr type functions for the following code as I'm getting an error on the last line.
Thanks.
procedure TUSXchgFrm.FormActivate(Sender: TObject);
var
RecINFO : INFO;
rate : Single;
begin
read_options(@RecINFO); //read options file
rate := RecINFO.us_exch_rate; //read info from options file
CurUsXchgEdt.Text := rate; //assign value to Edit box
end;
Does anyone know how to convert Singles to Strings and vice versa?
I'm looking for something like StrToInt or IntToStr type functions for the following code as I'm getting an error on the last line.
Thanks.
procedure TUSXchgFrm.FormActivate(Sender: TObject);
var
RecINFO : INFO;
rate : Single;
begin
read_options(@RecINFO); //read options file
rate := RecINFO.us_exch_rate; //read info from options file
CurUsXchgEdt.Text := rate; //assign value to Edit box
end;