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 startsw() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FUNCTION STARTSW()

  Short:
  ------
  STARTSW() Determines if a string starts with another string

  Returns:
  --------
  <lStartsWith> => String 1 starts with string 2

  Syntax:
  -------
  STARTSW(cTarget,cStarts)

  Description:
  ------------
  Determines if string 1 <cTarget> starts with string 2
  <cStarts>

  Examples:
  ---------
   cStr1    := "SUPERFUNCTION"

   cStr2    := "SUPER"

   cStr3    := "SOUP"

   STARTSW(cStr1,cStr2)    //returns .t.

   STARTSW(cStr1,cStr3)    //returns .f.

  Source:
  -------
  S_STARTS.PRG


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