FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Option for Xbrowse Softseek to verify input field ?
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Option for Xbrowse Softseek to verify input field ?
Posted: Tue Apr 30, 2019 10:38 AM

In Xbrowse we can softseek and for every key, the list will only show the result (records that match the input field)

Can we also do that from wittin a input field (or prefered Xbrowse field)

What I want to do :

We are going to input lots of potential customers from a mailing list. It would be needed that when we start to input a new name (or adress is maybe better) that
for every key we proceed, a second Xbrowse would show the result for the matching record. That way we can see from just a few keystrokes that that customer is
already into the database, and we can skip the rest of the data and try the next adress.

Marc Venken

Using: FWH 23.08 with Harbour
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Option for Xbrowse Softseek to verify input field ?
Posted: Tue Apr 30, 2019 06:51 PM

Just a thought, but why not use the browse with it's search enabled. Start typing the data, and if you see no match, program a right click on the mouse to pop up an Edit screen, with a new record appended, where you can type in the data.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 1487
Joined: Tue Jun 14, 2016 07:51 AM
Re: Option for Xbrowse Softseek to verify input field ?
Posted: Tue Apr 30, 2019 10:31 PM
Tim, I use the idea from you. Less code, just adding few lines in Xbrowse power. I even added Xbrowse EditSource:

Code (fw): Select all Collapse
   @ 690,500 BTNBMP PROMPT "<- Blanco" ;
      SIZE 100,25 PIXEL OF oDlg1;
      ACTION ( oBrw:EditSource(.T., "klant_nr,Naam_1,Straat,Postcode,Gemeente" ) )


Any Idea how I can pre define some values in the fields ?

So that klant_nr has a value already predifined...and then start the dialog.
Marc Venken

Using: FWH 23.08 with Harbour
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Option for Xbrowse Softseek to verify input field ?
Posted: Wed May 01, 2019 01:35 AM

In your edit function preload default values after the append and before the save. You can change any values in the edit dialog

Sent from my iPhone using Tapatalk

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion