Blog Stats
  • Posts - 10
  • Articles - 0
  • Comments - 1
  • Trackbacks - 0

 

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,...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

SELECT COUNT DISTINCT

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'
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Windows Service Template

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

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Debugging Window Service applications

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

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

 

 

Copyright © LEV