$FUNCNAME$
  MLPOS()
$CATEGORY$
  STRING
$SUMMARY$
   Determine the position of a line in a character string or memo field
$LANG_RU$
           
$SYNTAX$
     MLPOS(<cString>, <nLineLength>, <nLine>, [<nTabSize>], [<lWrap>]) --> nPosition
$LANG_RU$
     MLPOS(< >,< >,< >, [< >],
	  [< >]) -->  
$ARGUMENTS$
     <cString> is a character string or memo field.

     <nLineLength> specifies the number of characters per line.

     <nLine> specifies the line number.

     <nTabSize> defines the tab size.  The default is four.  If
     <nTabSize> is greater than or equal to <nLineLength>, then the tab size
     is adjusted to <nLineLength> - 1.

     <lWrap> toggles word wrap on and off.  Specifying true (.T.) toggles
     word wrap on, and false (.F.) toggles it off.  The default is true
     (.T.).
$LANG_RU$
     < > -    memo-.

     < > -     .

     < > -    .   
     ,       4.  
      < >      <
     >,        
      (< > - 1).

     < > -  (  ) 
      .    "" (.T.) -  , 
     "" (.F.) -  .    ,  
       - "" (.T.).
$RETURNS$
     MLPOS() returns the character position of <nLine> in <cString> as an
     integer numeric value.  If <nLine> is greater than the number of lines
     in <cString>, MLPOS() returns the length of <cString>.
$LANG_RU$
     MLPOS()     < >
         ,   
     < >,    .   
     < > ,      
     , MLPOS()     .
$EXAMPLES$
       This example uses MLPOS() to find the position of a specific
	line, given a line length:

	cString = MEMOREAD("Temp.txt")
	nLineLength = 40
	nLine = 5
	nPosition = MLPOS(cString, nLineLength, nLine)
	? SUBSTR(cString, nPosition, 12)
$LANG_RU$
           MLPOS() 
               ,
          40 :

       cString = MEMOREAD("Temp.txt")
       nLinelength = 40
       nLine = 5
       nPosition = MLPOS(cString, nLinelength, nLine)
       ? SUBSTR(cString, nPosition, 12)
$SEEALSO$
  MEMOLINE(),MEMOTRAN(),MLCOUNT()
$END$
