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 fromdbAppend()
todbUseArea()
, as well as,hb_db***()
extensions, have been moved in a separate page.- Please click here...
-
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() ofCHR(0)
always returnsCHR(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. Returns0
if successful or-1
if there is an argument error or theDOS 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. Returns0
if successful or-1
if there is an argument error. Otherwise, theDOS 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 rangeA-Z
ora-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, where1
is the drive A:,2
is B:,3
is C:, etc. If<nDrive>
is omitted or specified as0
(zero) then by default is used the current drive.
See also:hb_DiskSpace()
andhb_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 bySET ALTERNATE
. -
DMY(
[<dDate>][, <lMode>]
) β cDateString
Returns the date as a string inDD Month YY
format. -
DOSError(
[<nNewOsCode>]
) β nOsCode -
DoW(
<dDate>
) β nDay
returns the day of the week as a number between1
and7
or0
if<dDate>
is empty. The first day of the week is1
(Sunday) and the last day is7
(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 returns0
. -
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 inYYYYMMDD
format. If<dDate>
is empty returns an eight spaces long string.
π Home