<div dir="ltr">In this scenario you'd put a pushkey command in before the actual lookup ... once the lookup completes the pushed key ends the lookup (if the lookup accepts the key naturally).<div>But ... the original problem is probably better solved by creating a better index mechanism as Scott himself proposed.<br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div>--</div><div>Bill McEachran</div><div><font size="1"><a href="mailto:bill.mceachran@gmail.com" target="_blank">bill.mceachran@gmail.com</a> </font></div><div><font size="1"><a href="http://www.wjmceachran.com" target="_blank">http://www.wjmceachran.com</a> </font></div><div><font size="1"><a href="http://www.fileproprogramming.com" target="_blank">http://www.fileproprogramming.com</a></font></div></div><div><font size="1" color="#0000ff"><a href="https://ca.linkedin.com/in/bill-mceachran-82a56114" target="_blank">https://ca.linkedin.com/in/bill-mceachran-82a56114</a></font><br></div><div><br></div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 27, 2018 at 6:20 PM Richard Kreiss <<a href="mailto:rkreiss@gccconsulting.net">rkreiss@gccconsulting.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div class="m_149778115811868113WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">The problem is that this would require user input as processing stops once all the records are selected. That is why there needs to be some way to have a browse
lookup do something without user input.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">@bk is the only way a browse does anything once the records have been selected. Even then, the acceptable key strokes are defined as part of the command line.
That is why adding an option for a length of time would be workable. The sub-routine name can be either fixes or be another renvirnmental variable such as PFBrowseSub. That could be set from the command line or passed as a –BW option with the *clerk or *report
command.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">An option such as this would allow a browse to be updated automatically. And yes I did need this for a programming job I was considering. Without such an option,
I had to pass on the job. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">Richard Kreiss<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d">GCC Consulting<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><a name="m_149778115811868113__MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1f497d"><u></u> <u></u></span></a></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #e1e1e1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> William J. McEachran [mailto:<a href="mailto:bill.mceachran@gmail.com" target="_blank">bill.mceachran@gmail.com</a>]
<br>
<b>Sent:</b> Tuesday, June 26, 2018 1:01 PM<br>
<b>To:</b> <a href="mailto:rkreiss@verizon.net" target="_blank">rkreiss@verizon.net</a><br>
<b>Cc:</b> Bruce Easton <<a href="mailto:bruce@stn.com" target="_blank">bruce@stn.com</a>>; Filepro 2 List <<a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a>><br>
<b>Subject:</b> Re: Browse Lookups<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">You could probably do that ...<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Record the current time into a variable before the browse starts.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">In the browse processing compare the current time the original time.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">When your desired time has passed 'drop all' -- you'd need a pushkey set to get you out of the browse and continue with your 'out of time' routine.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The devil is in the details of course.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">--<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Bill McEachran<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt"><a href="mailto:bill.mceachran@gmail.com" target="_blank">bill.mceachran@gmail.com</a> </span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt"><a href="http://www.wjmceachran.com" target="_blank">http://www.wjmceachran.com</a> </span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt"><a href="http://www.fileproprogramming.com" target="_blank">http://www.fileproprogramming.com</a></span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:7.5pt;color:blue"><a href="https://ca.linkedin.com/in/bill-mceachran-82a56114" target="_blank">https://ca.linkedin.com/in/bill-mceachran-82a56114</a></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Jun 26, 2018 at 11:39 AM Richard Kreiss via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<p class="MsoNormal">Problem with your not tried suggestion is that the browse lookup occurs outside the normal processing and will not see anything done outside the browse that’s why the @bk option.
<br>
<br>
I would love to be able to set a timer for a browse which would execute a sub-routine. One could then put up or take down a show pop up. What I really wanted was the ability to have the browse re-execute to add or delete records. This would also allow for
the closing of a browse if nothing is happening or putting up a msgbox which requires a response. No response in a given fine the. Record is exited. This is similar to what happens on some websites where one is prompted about logging out after a. Set time
of inactivity. <br>
<br>
In my example, the programmer would be responsible for deciding if the record should be saved first or just cancelled thereby losing any changes made.
<br>
<br>
Richard<br>
Sent from my iPhone<br>
<br>
> On Jun 25, 2018, at 10:28 PM, Richard Kreiss via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a>> wrote:<br>
> <br>
> I did this years ago be counting the records to appear in the lookup or report and the dividing by the length of the scroll bar. That let me know how many records had to be processed before setting a 1 character field’s value to a graphic character for display.
Ds=ds{ds when the execution value was met. You can even put up % complete values or display that value as a show.
<br>
> <br>
> With a browse, you will need to set this as a subroutine to be run along with Any other processing. Keep in mind that once all the records are selected in a browse, moving through the records will cause the scroll routine to run again. You will need to block
any key strokes that cause the browse to execute this sub routine. <br>
> <br>
> For Windows based computers, I have not seen the issue of a browse appearing to be frozen. This was an issue in the early ‘90’s.
<br>
> <br>
> As for the report output, this was done for a client’s bookkeeper so that she could glance at a screen and have a visual idea of how far along the report generation was. Again, the speed of today’s machines has made this unnecessary.
<br>
> <br>
> Richard<br>
> Sent from my iPhone<br>
> <br>
>> On Jun 25, 2018, at 3:40 PM, Walter Vaughan Jr via Filepro-list <<a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a>> wrote:<br>
>> <br>
>> I had sort of the same Idea that one could show boxes/lines incrementing across the bottom of the screen like the illusion of a progress bar, however I'm curious how one would trap knowing that you are not locked up. How would you know in the "prc= "
code that you had gotten to the end and need to take it down? Typically after the browse I've only checked for @bk keys. So one could change the show box status to "Completed" before checking for @bk's?<br>
>> <br>
>> <br>
>> <br>
>> -----Original Message-----<br>
>> From: Filepro-list [mailto:<a href="mailto:filepro-list-bounces%2Bwvaughan" target="_blank">filepro-list-bounces+wvaughan</a>=<a href="mailto:steelerubber.com@lists.celestial.com" target="_blank">steelerubber.com@lists.celestial.com</a>] On Behalf Of Fairlight
via Filepro-list<br>
>> Sent: Monday, June 25, 2018 3:24 PM<br>
>> To: <a href="mailto:filepro-list@lists.celestial.com" target="_blank">filepro-list@lists.celestial.com</a><br>
>> Subject: Re: Browse Lookups<br>
>> <br>
>> 1) Before your lookup, do a SHOW (or other NON-blocking) text display.<br>
>> <br>
>> 2) Set an increment counter to zero.<br>
>> <br>
>> 3) Every time that code block is executed, increment your counter. If you want to handle it in multiples of 'x', do the calculation to determine if you're on that multiple (of, say...100 or 1000).<br>
>> <br>
>> 4) Every time it's time to print the message, update it with the incremented counter.<br>
>> <br>
>> 5) After the lookup is complete, take down or otherwise paint over your text display.<br>
>> <br>
>> 6) Profit.<br>
>> <br>
>> m-><br>
>> <br>
>> On Mon, Jun 25, 2018 at 03:06:24PM -0400, Scott Walker via Filepro-list thus spoke:<br>
>>> I'm doing a browse lookup.<br>
>>> <br>
>>> There is some code executed for each record which causes many of them <br>
>>> to be dropped (that is good).<br>
>>> <br>
>>> But when a lot of records are dropped (like thousands) I want to flash <br>
>>> a message telling the customer that the system is doing some searching <br>
>>> and is not "frozen". When the system is not actively searching for <br>
>>> records to include, (like when it's filled up the entire browse lookup <br>
>>> window) I want this message to be cleared or when it's gotten to the <br>
>>> end of the file it is searching through.<br>
>>> <br>
>>> Has anyone figure out how to do this?<br>
>>> <br>
>>> I'm having trouble figuring out where the right place to put the code <br>
> <br>
> _______________________________________________<br>
> Filepro-list mailing list<br>
> <a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.com</a><br>
> Subscribe/Unsubscribe/Subscription Changes<br>
> <a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">
http://mailman.celestial.com/mailman/listinfo/filepro-list</a><br>
<br>
_______________________________________________<br>
Filepro-list mailing list<br>
<a href="mailto:Filepro-list@lists.celestial.com" target="_blank">Filepro-list@lists.celestial.com</a><br>
Subscribe/Unsubscribe/Subscription Changes<br>
<a href="http://mailman.celestial.com/mailman/listinfo/filepro-list" target="_blank">http://mailman.celestial.com/mailman/listinfo/filepro-list</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote></div>