Subject: | |
From: | |
Reply To: | VANCE,JEFF (HP-Cupertino,ex1) |
Date: | Tue, 27 Mar 2001 19:44:39 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hello Andres,
...
> What I am looking for is some gosub..return (or procedure
> call; for the moment, value return is not necessary, but it will be a
> plus) mechanism on UDCs.
UDC and command files (scripts) do not support function or procedure
calls within them; however, they can invoke other UDCs/scripts -- and,
therefore they can invoke themselves recursively. The idea is to call
(invoke) yourself with a special parameter that controls where execution
in the script begins. This approach, using alternate entry points, is
documented on Jazz at:
http://jazz.external.hp.com/papers/SolSymposium_01/CIprogramming/index.htm
(watch for line wrap, and look in particular at slides 12 - 15 and at
examples on slides 28, 38-43).
Also, there are scripts and UDCs on Jazz that utilize this concept of
"entry points" as a form of subroutine. See:
http://jazz.external.hp.com/src/scripts/index.html
Hope this helps,
Jeff Vance, CSY
|
|
|