HP3000-L Archives

March 2001, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Tue, 27 Mar 2001 19:44:39 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (25 lines)
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

ATOM RSS1 RSS2