[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
__UNPACKDATE
Pack a date formatted variable to a word
------------------------------------------------------------------------------
Function:
__UNPACKDATE:FAR
Description:
This function takes a numeric value in AX (see __PACKDATE), and
returns a var of the form YYYYMMDD in DX:AX. It's the complement
of _PACKDATE
Example:
if you would want a function, let's say Dos2Date() that converts a
Numeric DOS date var to a Clipper date var, you could do as follow:
Dos2Date(nVar) --> dVar
mov ax,1
push ax
call __PARNI
add sp,2
call __UNPACKDATE
push dx
push ax
call __RETDS
add sp,4
ret
Note that XPunpackDate() does it slightly differently.
See Also:
__UNPACKTIME
__PACKDATE
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson