D - Petewg/harbour-core GitHub Wiki

πŸ”™ Home

  • Date() ➜ dCurDate
    returns the current system date as reported by the system clock.

  • Day( <dDate> ) ➜ nDay
    returns the numeric day of the month of <dDate>. When <dDate> is an empty date, the function returns zero.

  • Days( <nSecs> ) ➜ nDay
    converts <nSecs> seconds to the equivalent number of days

  • DaysInMonth( <nMonth>, <lLeapYear> ) ➜ nDaysInMonth
    returns the number of days in month. (xhb library, been put here for reminder).

  • DaysToMonth( <nMonth>, <lLeapYear> ) ➜ nDaysToMonth
    return total number of days from first of Jan to beginning of <nMonth>. (xhb library, been put here for reminder).


db***() database functions family

  • All db***() database related functions, that is, all functions from dbAppend() to dbUseArea(), as well as, hb_db***() extensions, have been moved in a separate page.

  • DefPath() ➜ cDefaultPath
    returns the current default path, if it has been set, or empty string otherwise.
    a synonym to __DefPath().

  • Deleted() ➜ lDeleted
    returns .T. or .F. if the current record is marked for deletion or not.

  • DeleteFile(<cFileName>) ➜ nErrorCode
    returns zero on success or a numeric error code on failure.

  • Descend(<exp>) ➜ ValueInverted
    returns an inverted expression of the same data type as the <exp>, except for dates which return a numeric value. A Descend() of CHR(0) always returns CHR(0).

  • DevOut(<exp>, [<cColorString>]) ➜ NIL

  • DevOutPict(<exp>, <cPicture>, [<cColorString>]) ➜ NIL

  • DevPos(<nRow>, <nCol>) ➜ NIL

  • DirChange(<cDir>) ➜ nResult
    Change the current DOS directory. <cDir> is the name of the directory to change to, including the drive. Returns 0 if successful or -1 if there is an argument error or the DOS error code otherwise.

  • Directory(<cDirSpec> [, <cAttributes>]) ➜ aDirectory
    returns an array of subarrays with filenames matching to <cDirSpec> filter.
    Each subarray has the structure: {cF_NAME, nF_SIZE, dF_DATE, cF_TIME, cF_ATTR}.
    Wildcards are allowed in <cDirSpec>, e.g: "*.txt" or "*.tx?".
    If <cDirSpec> is omitted, the default value is "*.*" (all files).
    See also: hb_Directory()

  • DirRemove(<cDirName>) ➜ nSuccess
    removes a specified directory. Returns 0 if successful or -1 if there is an argument error. Otherwise, the DOS error code. Note that you must have sufficient rights to delete a directory. A directory must be empty in order to be deleted.

  • DiskChange(<cNewDrive>) ➜ lSuccess
    returns true .T. if an attempt to change current drive to <cNewDrive> was successful, otherwise returns false .F.. Valid values for <cNewDrive>, which specifies the letter of the target disk drive to change to, are in range A-Z or a-z.

  • DiskName() ➜ cDrive
    Returns the letter of the current DOS drive, without a trailing colon.

  • DiskSpace([<nDrive>]) ➜ nBytes
    returns the number of bytes of empty space on the given disk drive.
    Optional parammeter <nDrive> is the number of the disk drive to investigate, where 1 is the drive A:, 2 is B:, 3 is C:, etc. If <nDrive> is omitted or specified as 0 (zero) then by default is used the current drive.
    See also: hb_DiskSpace() and hb_vfDirSpace() for more options/features.

  • DispBegin() ➜ NIL

  • DispBox(<nTop>, <nLeft>, <nBottom>, <nRight>, [<cnBoxString>], [<cColorString>]) ➜ NIL

  • DispCount() ➜ nDispCount

  • DispEnd() ➜ NIL

  • DispOut(<exp>, [<cColorString>]) ➜ NIL

  • DispOutAt(<nRow>, <nCol>, <expression> [, <cColor>]) -➜ NIL
    writes a single value to the screen at speficic position, but is not affected by SET ALTERNATE.

  • DMY([<dDate>][, <lMode>]) ➜ cDateString
    Returns the date as a string in DD Month YY format.

  • DOSError([<nNewOsCode>]) ➜ nOsCode

  • DoW(<dDate>) ➜ nDay
    returns the day of the week as a number between 1 and 7 or 0 if <dDate> is empty. The first day of the week is 1 (Sunday) and the last day is 7 (Saturday).

  • DoY([<dDate>]) ➜ nDayOfYear
    returns a calendar day number that specifies which day of the year <dDate> represents. If dDate is NULL, the system date is used. An empty or invalid date returns 0.

  • DToC(<dDate>) ➜ cDate
    converts a date value to string. returned value is formatted in the current date format (default: mm/dd/yy). A null date returns a string of spaces equal in length to the current date format.
    NOTE: The result is affected by the current SET DATE/SET DATE FORMAT and SET EPOCH settings, which may lead to unexpected/incorrect results. For conversions between DATE to CHARACTER and vice-versa, use DtoS()/StoD() that are independent of those settings.

  • DToS( <dDate> ) ➜ cDate
    returns a character string in YYYYMMDD format. If <dDate> is empty returns an eight spaces long string.

πŸ”™ Home

⚠️ **GitHub.com Fallback** ⚠️