Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
User Defined Function - Return value
#2
ret 1

at the end.

-------------

Also add #:

function# ...

It is not necessary but then you will see in status bar that the function returns an int value.

------------

Shorter macro code:
Code:
Copy      Help
str accn;; accn will be used to define the window name in a later Acc statement in the function T2Series
GetPACSAccn accn;; GETPACSAccn gets the variable accn to be passed along in T2Series

if T2Series(accn)
,OnScreenDisplay   "found it"
else
,OnScreenDisplay "didn't find it"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)