The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: none
Declaration: function StrToIntDefault (InStr: string; Def: integer): integer;

The function StrToIntDefault tries to convert the string InStr which contains a decimal or hexadecimal number (preceded by a $ character) to an integer. If the conversion fails for some reason, the function returns the default value specified by the parameter Def.

Last Update: 2012-Oct-20