Partial browse key: reinventing the wheel

Barry Wiseman barry at gensoftdes.com
Fri Jan 6 12:28:22 PST 2006


I know this has surely been coded various times over the years by various filePro 
programmers.

Under my keyfield prompt, I want a constantly refreshed browse of the partial key 
results.  e.g., if you type "ABC" the browse window will refresh between keystrokes 
to show you first all keys beginning with A, then only the "AB"'s, finally only the 
entries starting with "ABC".

It's working pretty good.  In a waitkey loop, I capture the keystroke, update the 
lookup key, and refresh the browse. @sk is my friend when they move the cursor or 
finally select a record.

However, I'm trying to emulate destructive backspace so they can correct typing 
mistakes.  Since there's no @sk for it (and I don't want to change the behavior of 
CLFT), I'm presently committing the wretched hack of assuming a backspace on

	@sk eq "" and WaitKeyChar eq ""

which of course will bite me as soon as the lookup key needs to contain space 
characters (none now do).

Any bright ideas?  Don't know how I can get filePro to report that "backspace" event 
to me.

-----------------------------------------------------------------
  Barry Wiseman                              barry at gensoftdes.com
  Genesis Software Designs, Inc.            Voice: (212) 889-9191
  18 E. 41 Street, New York, NY 10017         Fax: (212) 889-1589
-----------------------------------------------------------------



More information about the Filepro-list mailing list