[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Str_to_Long


Purpose   Converts a string to a longint.

Decln.    Str_to_Long(Str:string):longint;

Returns   Longint

Remarks   Str is the source string.

          If the string is null or cannot be successfully converted to a
          longint, the function returns a zero.

Example

VAR
  L : LONGINT;
BEGIN
    L := STR_TO_LONG('99165');
END;

The variable L is assigned the value 99165.

See Also: Int_to_Str Str_to_Real Str_to_Int
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson