Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dflen()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfLen()
Calculates a string lenght
------------------------------------------------------------------------------
Syntax:

     dfLen( <cSource>, <c2Skip>, [<lSwitch>]) -->nLen

Parameters:

     <cSource>  Source string.
     <c2Skip>   Character to skip during calculation.
     <lSwitch>  Skip mode: if .T. skips all characters between the first
     <c2Skip> and the next one; if .F. skips all <c2Skip> characters. The
     default value is .F.

Returns:

     <nLen> string lenght.

Description:

     Calculates the lenght of string <cSource> without considering the
     <c2Skip> characters. The function behaves differently based on the
     value of <lSwitch>. If this argument is .T. it skips all characters
     between two consecutive <c2Skip> characters. If it is .F. it only
     skips the <c2Skip> characters.

Example:

     ? dfLen( "Thomas"   , "h"      ) // 5
     ? dfLen( "Thomas"   , "h", .T. ) // 1
     ? dfLen( "Margaret" , "a", .T. ) // 4
     ? dfLen( "Margaret" , "a", .F. ) // 6
     ? dfLen( "Margaret" , "a"      ) // 6

See also:

     dfCmpNum(), dfStrCHK()

See Also: dfCmpNum() dfStrCHK()

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