Hi samtran0331,
Thanks for your reply and sorry for not making it clear in the question, but the variable "InitDateStr" is initialized with "InitDateStr := datetostr(0));", and therefore holds the string to look for, depending on the language setting. So the line "if (pos(InitDateStr,e.Row.Cel
But, I need to be sure it only happenswith text in those cells which are originally populated by a datetime or smalldatetime column from the SQL DB.
Main Topics
Browse All Topics





by: samtran0331Posted on 2008-01-12 at 04:21:21ID: 20643535
since you know that a null datetime is going to return 01-01-1900, why not make your "if" statement based on that?
1-01-1900" )....
ng.replace ("01-01-19 00","");
something along the lines of
if(e.Row.Cells[i].text=="0
or you could even use replace instead of the "if"...
e.Row.Cells[i].text.tostri