Setting @USER1 (AREV Specific)
At 09 MAR 2006 01:30:17PM Dick Eshelman wrote:
Can someone tell me how to assign a value to @USER in a collector window? I would like to use the initial value of @USER in a second window. I am aware there are other ways of accomplishing the same thing.
TIA,
At 09 MAR 2006 01:52PM Matt Sorrell wrote:
Dick,
When do you want to set @USER1, and how is its value determined?
If you want to set it as the user is leaving the window, then just put a post-process on the window that sets the value. Or, if you are calling the collector window from withing a subroutine, the subroutine has access to @PSEUDO, which contains the data from the window.
The subroutine could then set the value for @USER1.
Matt Sorrell
At 09 MAR 2006 03:44PM Dick Eshelman wrote:
What I am attempting to du is set @USER1=the value of the first prompt field. I have attempted to do this with a cataloged subroutine seting @USER1=@PSEUDO. This fails, the subroutine does not seem to have access to @PSEUDO. A program that calls the window does have access to @PSEUDO.
I not yet tested this, but I assume that the value of "SI" in "WINDOWS_COMMON%" would accomplish the same thing - it justs seems you ought to be able to directly set @USER1.
At 09 MAR 2006 05:34PM Matt Sorrell wrote:
Collector windows are a little odd.
For the subroutine that invokes the window, you stuff data into @Pseudo and then pull it out of @Pseudo when the window is closed.
However, if you are calling a catalogued subroutine FROM the window, while the window is running, then the data is accessible via @Record, not @Pseudo.
HTH,
Matt Sorrell