作者:吹水佬
DECLARE long GetDefaultPrinter IN winspool.drv string@,long@
nlen = 0
GetDefaultPrinter(NULL, @nLen)
cName = SPACE(nLen)
IF GetDefaultPrinter(@cName, @nLen) != 0
? LEFT(cName,nLen-1)
ELSE
? "没有默认打印机"
ENDIF
(YEAR(Date2) - YEAR(Date1)) * 12 + MONTH(Date2) - MONTH(Date1) + 1
其中 Date2 >= Date1