Internet Direct (Indy)
Home
PreviousUpNext
StrToCard Function

This function converts a string value into a cardinal..

Pascal
function StrToCard(
    const AStr: String
): Cardinal;
Parameters 
Description 
AStr 
the string containing a numerical value. 

Cardinal - The converted value of the string.

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. 

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

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.