Topic Path: Symbol Reference > Functions > StrToCard Function
ContentsIndexHome
PreviousUpNext
StrToCard Function

This function converts a string value into a cardinal..

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

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.