SP_SUBPLUS

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

 

2 responses to “SP_SUBPLUS

  1. Pingback: SP String Functions | Viva Clipper !

  2. Pingback: SP Functions | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.