Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro code in a str val?
#1
Is there a way to hold the entire code of a macro,  in str s1 of a different macro?
#2
Macro Macro62
Code:
Copy      Help
;; METHOD 1
str s1.getmacro("Macro1" 0) ;; Flag 0: get text,  can also do without flag '0':  str s1.getmacro("Macro1")
out s1 ;; <=== outputs contents of macro named "Macro1"

;; METHOD 2
QMITEM q
_i=qmitem("Macro1" 0 &q 8) ;; Flag 8: get text
out q.text  ;; <=== outputs contents of macro named "Macro1"
#3
Ah, very good. Thanks rOn...


Forum Jump:


Users browsing this thread: 1 Guest(s)