Why not "trap" copy - replace the verb with your own, ad then at least
you can have consistent behaviour regardless of WHERE it was called from


>-----Original Message-----
>From: [EMAIL PROTECTED] 
>[mailto:[EMAIL PROTECTED] On Behalf Of 
>[EMAIL PROTECTED]
>Sent: Friday, 29 July 2005 6:18 AM
>To: [email protected]
>Subject: [U2] [UD] Can a pgm tell what started it?
>
>From within a UniBasic program, is there a way to determine 
>what started it, i.e. a proc, a paragraph, or another UniBasic pgm?
>
>UniData 5.2 and 6.1
>HP-UX
>
>Long story:
>When using COPY with a select list active, COPY will prompt 
>"get id's from select list:<firstID>(Y/N)?".  The exception 
>is: COPY will not prompt if executed from a proc.
>
>We need a program to act just like COPY.  To do so, we need to 
>emulate the above "feature", but we need to know what the 
>executing process is.
>We don't see any @variables or SYSTEM calls to help us.  We've 
>tried PROCREAD, but if the proc was  more than 1 level away, 
>i.e. the COPY executed by a program executed by a proc, the 
>PROCREAD is true but COPY reacts as called from a program and 
>issues the prompt.  SYSTEM(49) doesn't show procs.  @SENTENCE 
>and @PARASENTENCE are inconclusive.
>AFAIK, there are no UDT.OPTIONS that affect how COPY operates.
>
>How can a program determine its caller's type?  There must be 
>a way, though it may be internal, since COPY can tell.
>
>TIA,
>Dean
>(sick and tired of Sarbanes-Oxley)
>-------
>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