Wednesday, July 1, 2009

Programming is hell

Hello, everyone. Assuming that no one read this. I am everyone. Anyways, I didn't get a chance to post yesterday. My mind was kinda wrapped around a problem I have been having at work. I have been working with this DataGrid in vb 2008 and everything is working well. The I hit the escape key while editing a new row and find that I get an amazing amount of errors out of it. I spent most of last night researching this topic. I found that when using Row Validating, you have to set your conditions explicitly in order to have the escape key work properly. Yesterday, I kept on looking for ways to catch the delete key when it is pressed and found that to be a crazy amount of code. My philosophy is that you should look for the shortest and most general purpose code to complete a task. I figured out that the delete key null the entire row prior to entering row validating so all I had to do is make sure the row is null or notDirty and it would skip over my regular operations. Thus, saving me the trouble of writing insane amounts of code.

As for my quiz show database. That is being delayed a bit more, I figure with the 3 day weekend coming up I should have plenty of time to work on it. I am considering writing two versions of my quiz program. One in vb that is run like a regular program and one in asp that can be ran on a website. I figure this will push me a bit further in my summer goals. Which I am fully confident I can achieve.

Thanks,
Matt Cook

No comments:

Post a Comment