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: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of roy
Sent: Monday, May 25, 2009 5:18 AM
To: u2-users@listserver.u2ug.org
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: owner-u2-us...@listserver.u2ug.org
[mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of phil walker
Sent: Sunday, May 24, 2009 8:07 PM
To: u2-users@listserver.u2ug.org
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: owner-u2-us...@listserver.u2ug.org [mailto:owner-u2-
> us...@listserver.u2ug.org] On Behalf Of Jacques G.
> Sent: Monday, 25 May 2009 12:01 p.m.
> To: u2-users@listserver.u2ug.org
> 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 <br...@brianleach.co.uk>
> To: u2-users@listserver.u2ug.org
> 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: owner-u2-us...@listserver.u2ug.org
> > [mailto:owner-u2-us...@listserver.u2ug.org] On Behalf Of roy
> > Sent: 22 May 2009 23:15
> > To: u2-users@listserver.u2ug.org
> > 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
> > u2-users@listserver.u2ug.org
> > To unsubscribe please visit http://listserver.u2ug.org/
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
> -------
> u2-users mailing list
> u2-users@listserver.u2ug.org
> To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to