Token1 = str.ToString().Substring(0, 9).Trim(); cToken2 = '5' + cToken1.PadLeft(5, '0'); cToken = cToken2.Substring(0, 6); cDate = str.ToString().Substring(10, 10); cTime = str.ToString().Substring(21, 2) + str.ToString().Substring(24, 2); cIdno = str.ToString().Substring(30, 1); datetime = Convert.ToDateTime(cDate); DataRow[] foundRows; foundRows = this.timeattDataSet.Tables["Data"].Select("Token_no= @cToken and Date = @datetime and Time = @cTime");
bool rowExists = timeattDataSet.Tables["Data"].AsEnumerable() .Any(row => string.Equals(row.Field<string>("Token_no"), cToken, StringComparison.OrdinalIgnoreCase) && row.Field<DateTime>("Date") == datetime);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)