Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SuperLib 3.50 - function subplus() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FUNCTION SUBPLUS()

  Short:
  ------
  SUBPLUS() Returns multiple substrings

  Returns:
  --------
  <cSubs> => new string from multiple substrings

  Syntax:
  -------
  SUBPLUS(cSource,<nStart1,nCount1>,...[nStart8,nCount8])

  Description:
  ------------
  Extracts from string <cSource> from position
  <nStart1> for <nCount1>

  characters, and repeats for sets
  [nStart2-nCount2...nStart8-nCount8]

  Examples:
  ---------
   cString := "PREFONTAINE"

   cGarble := SUBPLUS(cString,6,1,5,1,1,1,3,1)

   // garble  =  "NOPE"

  Source:
  -------
  S_SUBPLU.PRG


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