Indy 9 | Content | Index | Reference

StrToCard
Unit: IdGlobal
This function converts a string value into a cardinal..

    function StrToCard(const AStr: String): Cardinal;

Unit
IdGlobal
Parameters
const AStr: String
the string containing a numerical value.
Return Value
Cardinal - The converted value of the string.
Description
StrToCard is a Cardinal function used to convert the string value in AStr to it's representation as a Cardinal (32-bit unsigned value) value. StrToCard removes spaces and control characters from gthe beginning and end of the value in AStr prior to conversion.

Note: When AStr contains a value that cannot be expressed as a Cardinal value, the return value for the function is set to zero (0).

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.