Burying the subroutine in EVAL or an I-type Dict item is a little expensive,
typing-wise. Also having a program to parse the request and CASE itself
through the number of parameters is also limited.
Basically, my PRINT response will handle everything as easily as it implies.
I use it dozens of times every day to test out the very scenario that you
suggest.
PRINT ; CUSTNO='12345" ; PRODNO="AB12345" ; CALL GET.PRICE(CUSTNO, PRODNO,
PRICE) ; PRINT OCONV(PRICE,"MD2")
all on one TCL then Databasic Line. PROCREAD, @COMMAND or TCLREAD the line,
write to a BP file, compile and run. Incredibly flexible.
My 1 cent.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 18, 2004 10:03 PM
Subject: RE: [U2] [UD] running a subroutine
> > Wondering if there is a way to execute a subroutine from the colon
>
> > prompt.
>
>
>
> I haven't seen anyone suggest using EVAL. This works for UV - I presume it
> works for UD too. You may need to play with the return values.
>
>
>
> SELECT EVAL "SUBR('SUB.NAME',VAR1,VAR2)" FROM VOC FIRST 1;
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> **********************************************************************
> This email message and any files transmitted with it are confidential
> and intended solely for the use of addressed recipient(s). If you have
> received this email in error please notify the Spotless IS Support Centre
(61 3 9269 7555) immediately who will advise further action.
>
> This footnote also confirms that this email message has been scanned
> for the presence of computer viruses.
> **********************************************************************
> -------
> u2-users mailing list
> [EMAIL PROTECTED]
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/