Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - istr() convert an integer to a character string http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 istr()              Convert an integer to a character string
------------------------------------------------------------------------------
 Declaration
   string.hdr

 Syntax
   func char istr extern
   param value long gNumber

 Arguments
   gNumber is a numeric expression.

 Return
   String representation of the passed numeric.

 Description
   The istr() function converts an integer number to a character string.

 Example
   #define EXAMPLE_STRING
   #include example.hdr

   // define indexing on first name + employee number
   
   dbfdef name
      char( 20 ) first
      ulong( 7 ) no
   enddef
   
   indexdef
       char(20) IdxName name->first + istr( name->no )
   enddef
   
   proc Test_istr
   // use istr() to convert a numeric to a string before adding it to
   // another string
   ? "Today is the " + istr( dow( today() ) ) + "th day of the week"
   endproc

   proc main
   Test_istr()
   endproc

See Also: ival() str()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson