vbscript: Add Month function implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
fcc9b7171a
commit
d87dc355eb
|
@ -1620,8 +1620,13 @@ static HRESULT Global_Day(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIA
|
||||||
|
|
||||||
static HRESULT Global_Month(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
static HRESULT Global_Month(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||||
{
|
{
|
||||||
FIXME("\n");
|
SYSTEMTIME st;
|
||||||
return E_NOTIMPL;
|
HRESULT hres;
|
||||||
|
|
||||||
|
TRACE("(%s)\n", debugstr_variant(arg));
|
||||||
|
|
||||||
|
hres = to_system_time(arg, &st);
|
||||||
|
return FAILED(hres) ? hres : return_short(res, st.wMonth);
|
||||||
}
|
}
|
||||||
|
|
||||||
static HRESULT Global_Weekday(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
static HRESULT Global_Weekday(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)
|
||||||
|
|
|
@ -1443,7 +1443,9 @@ Call ok(getVT(Date) = "VT_DATE", "getVT(Date) = " & getVT(Date))
|
||||||
Call ok(getVT(Time) = "VT_DATE", "getVT(Time) = " & getVT(Time))
|
Call ok(getVT(Time) = "VT_DATE", "getVT(Time) = " & getVT(Time))
|
||||||
|
|
||||||
Call ok(getVT(Day(now)) = "VT_I2", "getVT(Day(now)) = " & getVT(Day(now)))
|
Call ok(getVT(Day(now)) = "VT_I2", "getVT(Day(now)) = " & getVT(Day(now)))
|
||||||
Call ok(Day(2) = 1, "Day(time) = " & Day(2))
|
Call ok(Day(2) = 1, "Day(2) = " & Day(2))
|
||||||
|
Call ok(getVT(Month(now)) = "VT_I2", "getVT(Month(now)) = " & getVT(Month(now)))
|
||||||
|
Call ok(Month(2) = 1, "Month(2) = " & Month(2))
|
||||||
|
|
||||||
Sub testRGBError(arg1, arg2, arg3, error_num)
|
Sub testRGBError(arg1, arg2, arg3, error_num)
|
||||||
on error resume next
|
on error resume next
|
||||||
|
|
Loading…
Reference in New Issue