FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
TryStrToFloatInvariant Function

Tries to convert a string to a float in an invariant culture. This means "." is always decimal separator.

Pascal
function TryStrToFloatInvariant(const s: string; var i: extended): boolean;
C++
boolean TryStrToFloatInvariant(const AnsiString s, extended i);
Parameters 
Description 
const s: string 
String we want to convert, in English locale. 
var i: extended 
Returns the converted value. 

True if the string was successfully converted.

This method is used internally by FlexCel.

Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!