textA = ""; try { textA = x.textAObject.Name.ToString(); } catch { } textB = ""; try { textB = x.textBObject.Name.ToString(); } catch { }