Geeks With Blogs
Michael Holland February 2009 Entries
Regex.IsMatch for Compact Framework
A good majority of my work is for mobile applications using the Compact Framework. Something really annoying I came across today was that if I used a variable for the pattern in my Regex then the IsMatch did not work, but if I used a constant then it did. So, for example, if I used: string val = "YELLOW"; string pattern = "(YELLOW)$"; The following statement does not give the correct result (true): bool flg1 = Regex.IsMatch("YELLOW", pattern); But the following does: bool flg2 = Regex.IsMatch(val, ......

Posted On Friday, February 27, 2009 7:45 AM

I found something really cool with SQL yesterday that I did not think it would do; give me the distinct count of a field. For example, to calculate the number of payment terms being used for our customers in the UK I can use the following statement: SELECT COUNT(DISTINCT [Payment Terms Code]) FROM [Customer] WHERE [Country_Region Code]='GB'

Posted On Wednesday, February 25, 2009 4:59 AM

Windows Service Template

Create a project template for your Windows Service applications to save loads of time.

Posted On Thursday, February 5, 2009 5:17 PM

Debugging Window Service applications

Make developing, testing and debugging your Windows Service application easy.

Posted On Thursday, February 5, 2009 4:56 PM

Copyright © LEV | Powered by: