That's a good idea if the program doesn't have return arguments.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Jordan Sent: Thursday, February 03, 2005 12:52 AM To: [email protected] Subject: RE: [U2] [AD] UniBasic Program with arguments You can run a program with arguments from the command line as below RUN BP PROG ARG1 ARG2 ARG3 In the program use SEEK(ARG.,..) or GET(ARG.,...) to get the arguments from the command line. Don't forget to quote the arguments if there are spaces in them. You can run the program with parameters from within a BASIC Program EXECUTE "RUN BP PROG ":arg1:" ":arg2:" ":arg3 Regards David Jordan Founding U2UG Board Member -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chauhan, Savita Sent: Thursday, 3 February 2005 1:59 AM To: [email protected] 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 (without any external utitlity) : 1. as a subroutine (with no args, but can use @COMMAND to read the command line) 2. as an external subroutine (with args) If I make it a subroutine, then I cannot call it from another pgm and pass it args. If I make external subroutine, I cannot run it from TCL. Thanks again. Savita Chauhan, Programmer/Analyst x:1754 Central Texas College. ------------------------------------------- ------- 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/
