Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

StringToIntg()

  • Last UpdatedJul 22, 2024
  • 1 minute read

Converts the numeric value of a string to an integer value and returns the result.

Category

String

Syntax

IntegerResult = StringToIntg( Text );

Parameter

Text

String that function acts on. Actual string or a string attribute.

Remarks

When this statement is evaluated, the system reads the first character of the string for a numeric value. If the first character is other than a number, the string's value is equated to zero (0). Blank spaces are ignored. If the first character is a number, the system continues to read the subsequent characters until a non-numeric value is detected.

Examples

StringToIntg("ABCD"); ' returns 0;

StringToIntg("22.2 is the Value"); ' returns 22 (since integers are whole numbers);

StringToIntg("The Value is 22"); ' returns 0;

See also

StringASCII()

StringChar()

StringFromIntg()

StringFromReal()

StringFromTime()

StringInString()

StringLeft()

StringLen()

StringLower()

StringMid()

StringReplace()

StringRight()

StringSpace()

StringTest()

StringToReal()

StringTrim()

StringUpper()

Text()

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in