<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang="EN-US" link="blue" vlink="purple"><div class="WordSection1"><p class="MsoNormal">Hi Dave,</p><p class="MsoNormal"> </p><p class="MsoNormal">If you are talking about using selection processing and prompting for user input via the input popup command it can be done using declare variables. A declare global command is used in selection processing and then a declare extern command is used @once in the report’s processing table. Below is a sample where the part # is field #1</p><p class="MsoNormal"> </p><p class="MsoNormal">Output processing that is called using –v</p><p class="MsoNormal">-----------------------------------------------------------------------------------------</p><p class="MsoNormal">Line 1</p><p class="MsoNormal">IF: fl eq “” ‘ This will prompt for input only 1 time</p><p class="MsoNormal">Then: fl(1,YESNO,g)=”Y”; gosub popbox</p><p class="MsoNormal">-----------------------------------------------------------------------------------------</p><p class="MsoNormal">Line 2</p><p class="MsoNormal">IF: pn eq 1 ‘ Part # matches typed part #</p><p class="MsoNormal">Then: select ‘ select it</p><p class="MsoNormal">------------------------------------------------------------------------------------------</p><p class="MsoNormal">Line 3</p><p class="MsoNormal">IF: ‘ Get next record</p><p class="MsoNormal">Then: end</p><p class="MsoNormal">-----------------------------------------------------------------------------------------</p><p class="MsoNormal">Line 4</p><p class="MsoNormal">popbox IF: </p><p class="MsoNormal"> Then: ‘ Subroutine to prompt for user input</p><p class="MsoNormal">------------------------------------------------------------------------------------------</p><p class="MsoNormal">Line 5</p><p class="MsoNormal"> IF: ‘ Prompt user for part #</p><p class="MsoNormal"> Then: input popup pn(20,ALLUP,g) “\r Enter Part # : \r “</p><p class="MsoNormal">-------------------------------------------------------------------------------------------</p><p class="MsoNormal">Line 6</p><p class="MsoNormal"> IF: pn eq “” ‘ No part # is entered so exit</p><p class="MsoNormal"> Then: exit</p><p class="MsoNormal">--------------------------------------------------------------------------------------------</p><p class="MsoNormal">Line 7</p><p class="MsoNormal"> IF: ‘ Initialize the declare variable that will pass info to report</p><p class="MsoNormal"> Then: declare global part(20,ALLUP,g)</p><p class="MsoNormal">--------------------------------------------------------------------------------------------</p><p class="MsoNormal">Line 8</p><p class="MsoNormal"> IF: ‘ Set the value typed to the declare variable</p><p class="MsoNormal"> Then: part=pn</p><p class="MsoNormal">----------------------------------------------------------------------------------------------</p><p class="MsoNormal">Line 9 IF: ‘ Return back to where gosub was called from</p><p class="MsoNormal"> Then: return </p><p class="MsoNormal"> </p><p class="MsoNormal"> </p><p class="MsoNormal">Output processing on report</p><p class="MsoNormal">@once IF: ‘ Bring in declare variable from selection processing</p><p class="MsoNormal"> Then: declare extern part</p><p class="MsoNormal"> IF: ‘ Set text passed using declare variable to a regular dummy variable</p><p class="MsoNormal"> Then: pn(20,ALLUP,g)=part</p><p class="MsoNormal"> </p><p class="MsoNormal">The dummy variable pn could then be placed on the report header to show the part # the user typed. If you would want to have the words Part # in front of it you could use a second dummy variable and then concatenate text with the pn variable. This would be continued in @once. For instance:</p><p class="MsoNormal"> If: ‘ Initialize title variable</p><p class="MsoNormal"> Then: ta(30,ALLUP,g)</p><p class="MsoNormal"> If: pn ne “” </p><p class="MsoNormal"> Then: ta=”Part #:”<pn</p><p class="MsoNormal"> </p><p class="MsoNormal">Then ta would be the dummy variable placed in the header and would show the text Part#:, one space, then the part # the user had typed.</p><p class="MsoNormal"> </p><p class="MsoNormal">Hope this helps!</p><p class="MsoNormal">Josh</p><p class="MsoNormal"> </p></div></body></html>