Entries from February 2006 ↓
February 12th, 2006 — .net, Microsoft, Software Development, Visual Studio 2005
There are times when you need to select text in column mode instead of the tradtional row selection. Think of it like selecting a range of columns and rows in Excel.
For example, lets say I want to highlight all the strings from this section of constants because you want to put into a store procedure as input parameters.

Move the cursor to the beginning column you want to start highlighting from. Hold down the ALT key and then press and hold down the left mouse button. Then Highlight the code you want with the mouse or arrow keys. Once you have the code you need, simply copy ( + C), cut ( + X), paste ( + V) or delete.

Now the clipboard has stored only the text that is highlighted above. The only thing now is remove the quotes and the semi-colons in when posting it in your stored procedure!
ALT + Left Mouse button = Column Text Selection
This feature also works in Visual Studio 2003. (It may work in 2001 but I have not used it in several years to remember)
technorati tags: visualstudio2005, visualstudio
February 12th, 2006 — Quotes
My definition of an expert in any field is a person who knows enough about what’s really going on to be scared. - P. J. Plauger
February 7th, 2006 — Technology, firefox, internet explorer, javascript, safari
I am creating this new site for my client and we have a ton of javascript functions. The code worked as planned when I tested the code with Internet Explorer and Safari. However when I tested it with Firefox (both the mac and windows), my scripts began to fail. How could this be? Just ten minutes ago it was working like a champ!
Here is a snipet code that was failing:
function Next()
{
nValue = formpost.txtHiddenPageCount.value;
nValue++;
formpost.txtHiddenPageCount.value = nValue;
formpost.submit();
}
Then it hit me. I needed to include the document object in front of each element! It’s good to see Firefox enforcing the proper use of the DOM. Next time, I will begin testing with Firefox instead of IE.
One can only hope that Microsoft will follow suit with IE 7. Internet Explorer has always been too foregiving with the way interpets HTML and javascript. Their HTML/Javascrript engine has also allowed us developers to be lazy and to get away with hacking HTML and javascipt. With Firefox and Apple’s Safari gaining market share, the days of designing your site to only work with IE is over!