[Lazarus] How to check if a string is a valid floating-point number.

silvioprog silvioprog at gmail.com
Fri Nov 25 11:41:25 CET 2011


var
  S: string;
  F: Double;
  R: Boolean;
begin
  S := 'A';
  R := TryStrToFloat(S, F);
end;

-- 
Silvio Clécio
===============================================
Blog - <silvioprog.com.br>
Twitter - <twitter.com/silvioprog>
Facebook - <facebook.com/silvioprog>
LazSolutions - <code.google.com/p/lazsolutions>
Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR>
===============================================
   * Conheça nosso canal IRC sobre Lazarus: #lazarus-br *
===============================================


More information about the Lazarus mailing list