My 3 cents.
- Original Message -
From: "Chauhan, Savita" <[EMAIL PROTECTED]>
To:
Sent: Thursday, February 03, 2005 9:09 AM
Subject: RE: [U2] [AD] UniBasic Program with arguments
> That's a good idea if the program doesn't have return arguments.
>
>
&
This is actually pretty simple in UniData - UniBasic. The call to
'SYSTEM(17)' tells you whether you're running from the command line or
as a called routine. Here's a program I wrote along these lines.
SUBROUTINE GET.UDT.OPTION(RES, OPTNO)
* GET.UDT.OPTION - Get the value of one specific UDT.OPT
hursday, 3 February 2005 1:59 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [AD] UniBasic Program with arguments
Thanks all you guys for all your replies.
This list has come to my rescue so many times. I have so much more to
learn.
I realized that I can run my program (with args) only as one of the
"Clever but not quite there...
That would only work if the subroutine used arg 1 as a return argument."
the orig. post was to run subroutine from command line ???
exactly what does the user expect this subroutine to do ???
This e-mail, including attachments, may include confidential and/or
prop
D] On Behalf Of Mats Carlid
Sent: 03 February 2005 10:22
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [AD] UniBasic Program with arguments
Well,
actually you can, sort of :
LIST VOC SAMPLE 1 EVAL "SUBR('your.subroutine', arg1 , arg2 )"
Then we can argue forever if this i
server.u2ug.org
> Subject: Re: [U2] [AD] UniBasic Program with arguments
>
> Well,
>
> actually you can, sort of :
>
> LIST VOC SAMPLE 1 EVAL "SUBR('your.subroutine', arg1 , arg2 )"
>
> Then we can argue forever if this is really running from TCl
>
-
Change is the only Constant.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Johnson
Sent: Wednesday, February 02, 2005 8:18 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [AD] UniBasic Program with arguments
Here it is, pretty quickly.
Create
February 2005 1:59 AM
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] [AD] UniBasic Program with arguments
Thanks all you guys for all your replies.
This list has come to my rescue so many times. I have so much more to
learn.
I realized that I can run my program (with args) only as one of the
following
Trevor: You gave up too easily. See my posts on PRINT that I've been using
for over 20 years.
My 1 cent
- Original Message -
From: "Trevor Ockenden" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, February 02, 2005 10:51 PM
Subject: RE: [U2] [AD] UniBasic Program with a
enden
m: 0414 731 634
e: [EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Chauhan, Savita
Sent: Wednesday, 2 February 2005 9:48 AM
To: u2-users@listserver.u2ug.org
Subject: [U2] [AD] UniBasic Program with arguments
Hi,
I am trying to
.
---
Change is the only Constant.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark Johnson
Sent: Wednesday, February 02, 2005 8:18 AM
To: u2-users@listserver.u2ug.org
Subject: Re: [U2] [AD] UniBasic Program with arguments
Here it
XECUTE "DECATALOG BP ":ID
007 EXECUTE "BASIC BP ":ID
008 EXECUTE "RUN BP ":ID
That's it. I created this in 1978 and have written 2 articles about it, one
in Datastream and the other for Spectrum. It should be part of the MV OS.
My 3 cents.
----- Original Mes
Hi again, Savita. Oops. Solution to wrong problem. I do have a handy
program that lets you call any cataloged subroutine with simple args
(i.e. strings & numbers) from TCL. It displays the return value of each
arg afterward.
Let me know if you want a copy emailed to you (or anyone else). Re
ROTECTED] On Behalf Of Cliff Bennett
> Sent: Tuesday, February 01, 2005 4:05 PM
> To: u2-users@listserver.u2ug.org
> Subject: Re: [U2] [AD] UniBasic Program with arguments
>
> Hi, Savita. I presume you mean running the program from TCL (:), the
U2
> command prompt.
>
>
Hi, Savita. I presume you mean running the program from TCL (:), the U2
command prompt.
In UniData there are two built-in variables, synonyms actually, named
@SENTENCE and @COMMAND. These contain the raw command line used to
invoke your subroutine.
I usually TRIM this (to eliminate multiple
TECTED] [mailto:owner-u2-
> [EMAIL PROTECTED] On Behalf Of Chauhan, Savita
> Sent: Tuesday, February 01, 2005 2:48 PM
> To: u2-users@listserver.u2ug.org
> Subject: [U2] [AD] UniBasic Program with arguments
>
> Hi,
>
> I am trying to run a unibasic program (external subroutine) t
@SENTENCE, commons, or run the program that calls the subroutine.
- Original Message -
From: "Chauhan, Savita" <[EMAIL PROTECTED]>
To:
Sent: Tuesday, February 01, 2005 4:48 PM
Subject: [U2] [AD] UniBasic Program with arguments
Hi,
I am trying to run a unibasic p
bject: [U2] [AD] UniBasic Program with arguments
Hi,
I am trying to run a unibasic program (external subroutine) that takes
two arguments.
I don't know how do I pass it the arguments if I run it directly from
shel prompt instead of calling it from another program.
I have gone through the manual,
Hi,
I am trying to run a unibasic program (external subroutine) that takes
two arguments.
I don't know how do I pass it the arguments if I run it directly from
shel prompt instead of calling it from another program.
I have gone through the manual, but can't find anything. Pls help.
Thanks
Savita.
19 matches
Mail list logo