get valid clause options

Post Reply
brewster
Posts: 43
Joined: Wed Jun 20, 2012 4:07 am

get valid clause options

Post by brewster »

Currently using Clipper, I have several "gets" each using a valid clause of AD_tbrpopup (Frankie.lib ).

This popup listbox displays all Code and company fields within a .dbf file .

"Code" is a 3 character uppercase user defined code representing the corresponding long company name field.

When the user enters the get they can incrementally search each character of the code for the desired entry.

The user can only select codes already within the .dbf file, that is maintained elsewhere.

So far, I have tryed combobox gets, but I only want to select the 3 digit code while at the same time viewing the long company name.

What FWH utility would easily accomplish this requirement, TWbrowse ??


08/21/12 4:30pm CST
I've kept on searching and have found DBcombo (samples\Testdbc1.prg) , will explore.




Bruce S.












FWH - 12.06 Jun 2012
Harbour - 3.1.0 Rev. 17222
bcc582
Clipper - 5.3b
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: get valid clause options

Post by Antonio Linares »

Bruce,

Yes, you may use DbCombo or use ( @ | REDEFINE ) GET ... ACTION ... and open a dialog with a browse ( twbrowse or txbrowse ) from there
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Re: get valid clause options

Post by James Bott »

Bruce,

I think forcing users to deal with codes is the wrong approach. The customer won't know the code so all they can provide is their name. So, the user only has a name and must somehow remember or lookup a code.

A much better approach is to just have the application allow the user to lookup the name and deal with the code invisibly in the background.

Our job is the make things easier for the user not more difficult.

Regards,
James
Post Reply