Shawn:

There's a program on the "wiki" that allows you to execute BASIC code from a
tcl line.

   http://www.pickwiki.com/cgi-bin/wiki.pl?BPTest

This is an extremely useful program and will do exactly what you want, and a
bunch of other things as well.  It was originally written for UniData, then
for UniVerse, then for D3.

So an example would be:

:BPTEST Value1 = "Hello" ; Value2 = "There." ; CALL subr.name (Value1,
Value2) ; END

Hope this helps.

Bill

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Shawn Waldie
> Sent: Friday, October 15, 2004 4:59 PM
> To: [EMAIL PROTECTED]
> Subject: [U2] [UD] running a subroutine
>
> Wondering if there is a way to execute a subroutine from the colon
> prompt.
>
> Let's say I have a subroutine that is defined as having 2 input args
> like:
>
> SUBROUTINE subr.name(arg1,arg2).
>
>
> I would like to test it from the colon prompt without having to
> hard-code the values of arg1/arg2...something like:
>
> :RUN BP subr.name "value.of.arg1" "value.of.arg2"
>
> Is something like this possible?  What I've tried so far hasn't
> worked.
>
> ************************************************
> * Shawn Waldie                San Juan College *
> * Programmer/Analyst         4601 College Blvd *
> * Phone: (505)566-3072   Farmington, NM  87402 *
> *      email: [EMAIL PROTECTED]       *
> *                                              *
> * HP-UX 11.11   UniData 6.0.4    Colleague R17 *
> ************************************************
> -------
> 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/
-------
u2-users mailing list
[EMAIL PROTECTED]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to