Home » Archives » February 2005 » Grid and Human Odor

[ Previous entry: The Microsoft Memo From Linus ]
[ Next entry: BUFFERED-003 ]
02/23/2005:

Grid and Human Odor


I was working with grids... when out of nowhere one column in the grid was playing hide and seek with the values in the database (or that's what I think it was doing).

Oh... grids... those are easy in VisualFoxpro... [ BEEP ]

Not that simple really... since it is a combo box inside a grid that points to another database which holds the normalized values and field code. In some cases one grid holds 3 or more databases aside from the 'parent' database.

Plus... I don't use Builders and Drag+Drop wizardy approaches. Everything is created 'programmatically'.

I spent an hour or I think more re-structuring some old databases. Adding some fields and tweaking some parts, chanting and doing some rain dance but after all the major changes (major since some databases also affects two other projects/clients aside from the current project), the grid combo box still won't show.

I compared codes with the working grids and the template is almost the same. More tweaked here and there. Nada. It won't work.

... and then I saw this line below the grid-related procedure:
.GridCOMM.column1.forecolor = RGB(255, 255, 255)

It was working from the start. It's just that the human eye is not trained to see a white colored text over a white background.

Lesson..?

Before giving solutions, always find the REAL root cause of the problem first. Highlight things if needed and always take a bath before coding.

Odor is a factor you know.


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 2005
SMTWTFS
   1234
567891011
12131415161718
19202122232425
262728    
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)