Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Modify Macro to use system date
#2
You code doesn't look like Quick Macros code?

There are many ways in QM to work with time formatted strings. Here would be an example of the most precise format for your application. It outputs the time right up to the millisecond. Pretty much guarantees a unique number for every transaction:
Code:
Copy      Help
str s
SYSTEMTIME st
GetLocalTime &st
s.format("%02i%02i%02i%02i%02i%02i%03i" st.wYear st.wMonth st.wDay st.wHour st.wMinute st.wSecond st.wMilliseconds)
out s


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)