Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FreshWin (c) Fresh Technologies - <b>str2arr() miscellaneous function</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  STR2ARR()                                           Miscellaneous Function
 Purpose..: Convert a string to an array
-------------------------------------------------------------------------------
 Syntax...: Str2Arr( <cGetStr> [, <cDelim>] ) ---> aString

 Arguments: <cGetStr>    = String containing a delimiter.
            [<cDelim>]   = Character to be used as a
                          delimiter. The default is "/".

 Returns..: <C> aString is an array whose elements are made up of
            the string portions separated by the delimiter.

 Source...: STR2ARR.PRG
-------------------------------------------------------------------------------
 Example..: Using the example from Parse(), the function can replace
            that code to fill an array where each element is the string
            portion between delimiters.

              aArray := {}
              ...
              while !empty( cStr )
                 aadd( aArray, Parse( @cStr ) )
              enddo

        OR

              aArray := {}
              ...
              aArray := Str2Arr( cStr )

See Also: wSay() wView()

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