static string MidStr(string Str, string sStart, string sEnd, int Start) { try { int iStart = Str.IndexOf(sStart, Start) + 1; int iEnd = Str.IndexOf(sEnd, iStart); return Str.Substring(iStart, iEnd - iStart); } catch { return string.Empty; } }