Finally a week vacation and a new company to look forward....
12:01 AM – 3:30 AMAs usual I was still working – my second job. This usually the case if there is a tight deadline. 3:40 AMI was about to do the last report when my table suddenly starts to shake! What the heck is happening?!?! I looked around and damn! It’s an earthquake! Felt dizzy after that. 3:50 AMI went to bed. Too dizzy to continue working. 7:30 AMMy mobile phone alarmed so I woke up…well not entirely because I cannot open my eyes. Ok 5 minutes more… 8:45 AMThen, ......
I will call this the "PowerBuilder Pattern" coz this was based on an existing PowerBuilder ancestor design of one company. I was shocked when they told me about this design to be implemented in .Net. Cheers! :-)
for (int i = 0; i < table.Count; i ++) { string s; s = Convert.ToString(table[i, "fsectcd"]); if(s[0] != '*') condition += " or " + sectionCondField + " = '" + s.Trim() + "'"; s = Convert.ToString(table[i, "fsite"]); if (s[0] != '*' && condition.IndexOf("'" + s.Trim() + "'") < 0) condition += " or " + sectionCondField + " = '" + s.Trim() + "'"; } I just found this code in our base class. What this code does is to create a where condition for our sql statement (for checking some security??? ......
I resigned today because of a good salary offer...