Edit28. Text:=floattostr (strtofloat (leftstr (rightstr (trim (edit27. Text), 8), 5)));
Electronic data for kt from 12.12 kg such intercept the data of normal
Sometimes data for? Or other abnormal string will prompt 'is not a valid float point value or
'? 'is not a valid float point value
How to determine leftstr (rightstr (trim (edit27. Text), 8), 5)) is not obtained when digital exit;
If -- -- -- -- -- - then the exit;
CodePudding user response:
Through regular pick up
CodePudding user response:
TryStrToFloat (const S: a string; The out Value: Extended) : Boolean;
CodePudding user response:
Try
Edit28. Text:=floattostr (strtofloat (leftstr (rightstr (trim (edit27. Text), 8), 5)));
Except,
Edit28. Text:=' ';
end;
Or directly to weight with the show
Edit28. Text:=leftstr (rightstr (trim (edit27. Text), 8), 5);
CodePudding user response:
strtofloatdef
CodePudding user response: