public CCommand(CConnection ConnObj) { Comm = null; if (ConnObj == null) { } else if (ConnObj.IsOpen()) { try { Comm = ConnObj.CreateCommand(); } catch (System.Exception Excpt) { Err.Add(Excpt); Comm = null; } } }