Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- GT_LIB v1.0 Reference Guide Release 1.0 - <b>convert an array into a character string</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 Convert an array into a character string
------------------------------------------------------------------------------

 Syntax

        GT_a2Str(<aData>,<bConvert>,<nLength>) -> cData

 Arguments:

      <aData> is the array of data. <bConvert> must be
      able to handle all data types found in the array.

      <bConvert> is the Block function to convert the data
      from the array. This data will then be padded to
      <nLength> by the GT_a2Str().

      <nLength> is the length to pad the items to in the
      string.

 Returns:

      cData

 Description:

      To turn an array into a character string, for saving to a
      mem file etc.

 Examples:

      // Convert number  array to a string.
      aData := {0,2,7,51,9,4}
      cData := GT_a2Str(aData,{ | nVal | Str(nVal) },2)
      // Result is " 0 2 751 9 4"

 Source: GT_A2STR.PRG

 Author:  Martin Bryant

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