Home » Archives » February 2004 » Combo Box Filter Issues

[ Previous entry: GOOGLE's perpetual love for something BETA ]
[ Next entry: The Man Who Could Have Been Bill Gates ]
02/23/2004:

Combo Box Filter Issues


Imagine you have a combo box.

This combo box holds (and displays) the 'NAME values' which are records in database F but returns the 'IDNO values'. (I'll explain the logic behind this on a different post... later.)

Database F contains only those two fields: the 'NAME values' which are mostly items/descriptions and its corresponding 'IDNO values' (or CODE or CODENUMBER whatever you prefer, lovely-lady-of-mount-lithsoma).

Now you 'morph' your combo box so that the text part would accept manual character entries and automatically filters the DropDown Items after its InteractiveChange event is triggered.

Now here's the question...

If the user types, let's say... the characters 'CHART', would you filter all the records having the string 'CHART' in it or just the records starting with the 'CHART' string?

In other words would you:
set filter to cBUFFER $ (upper(alltrim(DBASE.NAMEVALUE)))
... or would you:
set filter to cBUFFER $ substr(DBASE.NAMEVALUE, 1, nLEN)
... given that:
cBUFFER = upper(alltrim(this.Text))
nLEN = len(alltrim(cBUFFER))

Just some little issues I'm pondering on at 2:30 in the morning.

(And I am so tempted already to activate the comments feature of this blog.)


Disclaimers are for castrated EARTHLINGS.
Powered: GREYMatter | GM-RSS

 

 
 
 
 

 

foxpro.main
foxpro.archives
richardbase.home

articles
downloads
snippets
utilities
knowledgebase.links
website.links

outpost.forum
the.site
the.catalyst
pixelcatalyst.lair

rss.feeds

February 2004
SMTWTFS
   1234
567891011
12131415161718
19202122232425
26272829   
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004





GEEK count:
visitors since the aliens rebooted the counter last 02.23.2006 (was around 33,000++ before the alien intrusion | SINCE: 02.26.2004)