public static string SubStr(string sString, int nLength) { if (sString.Length <= nLength) { return sString; } string newStr = sString.Substring(0,nLength); newStr = newStr + "..."; return newStr; }
public static string SubStr(string sString, int nLength) { if (sString.Length <= nLength) { return sString; } string newStr = sString.Substring(0,nLength); newStr = newStr + "..."; return newStr; }