Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
copying a past date into
#2
Macro "DateInit". Creates global variable g_date and shows input box to populate it with date entered.

Code:
Copy      Help
str+ g_date
inp- g_date "" "" _s.time("%m/%d/%Y")

Macro "DatePaste". Pastes that variable. If it isn't initialized, runs "DateInit" instead.

Code:
Copy      Help
str+ g_date
if(!g_date.len) mac- "DateInit"
outp g_date


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)