Skip to content
Pete edited this page Jan 11, 2019 · 11 revisions

Back to Home

  • L2Bin(<nExp> ) cBinaryInteger
    returns a four-byte character string formatted as a 32-bit binary integer.

  • LastKey([<nInputMask>]) nInkeyCode
    returns the INKEY() value of the last key fetched from the keyboard buffer by the INKEY() function, or the next mouse event, or a wait state such as ACCEPT, INPUT, READ, WAIT, ACHOICE(), DBEDIT(), or MEMOEDIT(). Retains its current value until another key is fetched from the keyboard buffer.

  • LastRec() nRecords
    returns the number of records in a work area or 0 when there is no work area used or if it is empty. (Same as RecCount())

  • Left( <cString>, <nCount> ) cSubString
    extracts the first <nCount> characters from the left side of <cString>. If <nCount> is larger than the length of <cString>, entire <cString> is returned.

  • Len( <cString>|<aArray>|<hHash> ) nLength
    returns the number of items contained in a string, array or hash. This means:

    • If argument passed is a string, returned value is the length of string in characters, if current codepage supports such functionality, (f.e., "UTF8EX" code-page does support it but "UTF8" does not!)
      So, the same string may have different number of characters with different encoding. (see 'this post' for more..) (see also hb_BLen())
    • If argument passed is an array or a hash table, returned value is the number of their elements.
    • If argument passed is empty, function returns 0 (zero).
  • LenNum( <nNumber> ) nLength
    returns the number of digits plus the decimal point, the decimal digits and the minus sign (if any) of a number, i.e. the number of characters needed to display/print the number.

  • Log( <nExp> ) nNaturalLog
    returns the natural logarithm of a number.

  • Lower(<cString>) cLowerString
    returns a replica of <cString> but with all alphabetic characters converted to lowercase. All other characters remain the same as in the original string.

  • LTrim(<cString>) cTrimString
    removes all leading spaces of <cString>. If the string contains spaces only, a null string ("") is returned.

  • LUpdate() dModification
    returns the date of the last change to the open database file in the current work area. If no database is in use, returns a blank date.

Back to Home