Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having Trouble Setting up Simple User-Defined Function
#10
Still having trouble setting this up

So Macro 1 says:

Code:
Copy      Help
str+ mrn exam[
GetDemographics mrn exam;; this is the function name
outp "The patient medical record number is %s and the exam code is%s" mrn exam

Macro 2 is the function "GetDemographics" as follows:

Code:
Copy      Help
function str&mrn str&exam
spe -1

;; some steps that fill the clipboard
mrn.getclip
;;some additional steps that fill the clipboard with different text
exam.getclip
end


QM is saying invalid pointer for mrn. I am not sure what this means or how to change this? Anything to do with the operator "*" ?

Thanks!,
Stuart


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)