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).