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



Purpose   To convert a string to an integer

Returns   integer;

Declaration    Str_to_Int(Str:string): integer;

          Str is the string to be converted

Uses StrngTTT.

Remarks   If the string Str is null or the string cannot be
          successfully converted to an integer, the function returns a
          zero.





Example


               USES STRNGTTT;
               VAR I : INTEGER;
               BEGIN
                 I := STR_TO_INT('165');
               END.


The variable I is assigned the value 165.

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