Roy if possible I would reengineer using UniBasic as the driver program calling other programs and paragraphs.
Thanks, David A. Green www.dagconsulting.com (480) 813-1725 -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of roy Sent: Monday, May 25, 2009 5:18 AM To: [email protected] Subject: RE: [U2] Paragraphs and procwrite To explain a little better ... The paragraph calls many other procs and paragraphs as well as a number of basic programs. What I found is that if someone exits a basic program, control is returned to the calling paragraph. Since the paragraph is in use I cannot modify it and accomplish anything that way. Obviously reading something from the command line won't work in this circumstance. With a PQ type proc I could set a flag like INVALID and procwrite it back to the calling paragraph for testing to see if the proc should continue. I believe the idea of using @user0 may work but I haven't had a chance to test it. I was also hoping to avoid writing something to a file since there are many instances of this and clearing the flags could be a problem. Thanks again, Roy -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of phil walker Sent: Sunday, May 24, 2009 8:07 PM To: [email protected] Subject: RE: [U2] Paragraphs and procwrite Maybe I have come in late or are missing something in the question but can't you just use: Command = 'paragraph ':arg1 Execute Command Then in the paragraph Do something like PA * <<C2,arg1>> Cheers Phil. > -----Original Message----- > From: [email protected] [mailto:owner-u2- > [email protected]] On Behalf Of Jacques G. > Sent: Monday, 25 May 2009 12:01 p.m. > To: [email protected] > Subject: Re: [U2] Paragraphs and procwrite > > You can have the basic program generate the paragraph dynamically, and > save it in the Voc under a temporary name. You can even have that > paragraph delete itself when it is done. > > > > ----- Original Message ---- > From: Brian Leach <[email protected]> > To: [email protected] > Sent: Saturday, May 23, 2009 7:45:04 AM > Subject: RE: [U2] Paragraphs and procwrite > > Hi > > You could use one of the user-defined system variables: e.g. @USER0 > > E.g. > PA > CallMyProgram > IF @USER0 = "SomeFlag" GO DoSomething > > PROGRAM CallMyProgram > @USER0 = "SomeOtherFlagActually" > END > > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]] On Behalf Of roy > > Sent: 22 May 2009 23:15 > > To: [email protected] > > Subject: [U2] Paragraphs and procwrite > > > > Hi all, > > > > > > > > Is there a way to accomplish passing an argument from a basic > > program to a paragraph? > > > > > > > > Something like what procwrite does with a Proc? > > > > > > > > Thanks > > ------- > > 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/ ------- 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/
