Question
March 19, 2013 at 01:34 AM
kaithri

DBObj

by kaithri . Updated 13 years, 5 months ago

My codes are as below; i just need to add few more lines into it stating that the return newcode = strcode.

i’m not sure on that part.

private string CheckCode(string Str)
{

string NewCode = string.Empty;
string strCode = “Select’littl’+RIGHT(‘000’+LTRIM(STR(MAX(Cast(SUBSTRING(code,6,4)as int))+ 1)),4)from horseMaster where code like ‘littl0%'”;
DataTable dtCode = DBObj.QueryDB(strCode).Tables[0];

return NewCode;

This discussion is locked

All Comments