10-01-2013, 10:20 AM
Thanks for your advices. It was useful for me.
Other quesions as below,
1. From the same macro:
Function SM_About
I want to show the time consisted of year, month, day, hour, minute...,how to modify the code?
2. I test code as below
Macro Macro3
why the result is
am 12:00:05?
3. from QM help:
Macro Macro3
the results:
2003/4/3
2003/4/2 下午 11:00:00
Error (RT) in Macro3: 0x80020005, 類型不相符。. ?
and fail in
Macro Macro3
why?and how to modify?
Other quesions as below,
1. From the same macro:
Function SM_About
I want to show the time consisted of year, month, day, hour, minute...,how to modify the code?
2. I test code as below
Macro Macro3
why the result is
am 12:00:05?
3. from QM help:
Macro Macro3
DATE d="4/1/2003"
;add 2 days
d=d+2
out d
;subtract 1 hour
SYSTEMTIME st
st.wHour=1
out d.sub(st)
;get difference in hours
out d.diff("4.1.2003" st 1)
out "%i/%i/%i %i:%i:%i" st.wMonth st.wDay st.wYear st.wHour st.wMinute st.wSecond
the results:
2003/4/3
2003/4/2 下午 11:00:00
Error (RT) in Macro3: 0x80020005, 類型不相符。. ?
and fail in
Macro Macro3
why?and how to modify?