Browse Lookups

Fairlight fairlite at fairlite.com
Tue Jun 26 10:51:43 PDT 2018


I may faint.  :)

Doesn't have to be limited to just the browse ones I proposed, either.

Put-up/take-down of input popups, screen changes...  Heck, you could have a
generic keypress callback (I can think of a zillion uses for that,
especially if there's a system maintained field which contains the value of
the keypress).

Or, arguably the most useful callback which could exist: a callback for "a
filePro error has occurred", so you can do custom debug dumps -and- exit
the damned program gracefully rather than go into a polling read() loop on
STDIN, waiting for a keystroke which will never materialise in any headless
context (cron, CGI, etc.).  Since fP-Tech has been unable to give accurate
error reporting for years, the least they could do is let people properly
do their own, if they so choose to track the data.

m->


On Tue, Jun 26, 2018 at 12:45:26PM -0500, Paul McNary thus spoke:
> I like the idea of callbacks in filePro! :-)
> 
> 
> On 6/26/2018 11:17 AM, Fairlight via Filepro-list wrote:
> >On Tue, Jun 26, 2018 at 11:38:36AM -0400, Richard Kreiss via Filepro-list thus spoke:
> >>I would love to be able to set a timer for a browse which would execute a
> >>sub-routine.
> >You're thinking very old-school.
> >
> >What would be better than a timer is a set of configurable callbacks which
> >execute processing table segments upon various events.
> >
> >* Begin lookup
> >* Changed record
> >* End of matches
> >* Close lookup
> >
> >In this fashion, you can configure what you like, without having to rely
> >on an arbitrary timer which may be smaller than desirable, or larger than
> >necessary (thus wasting time).  Timers generally suck, to put it bluntly.
> >They're often too crude a tool.  Events are a much better methodology for
> >this sort of functionality.
> >
> >And lo and behold, filePro already supports events in general terms.  So
> >why not have @brsbeg, @brsrcd, @brsend, and @brscls as system-based events
> >which function like conventional callbacks?
> >
> >m->
> 
> 

-- 
Audio panton, cogito singularis.


More information about the Filepro-list mailing list