D David Parker Mar 11, 2005 #1 using(dbconn=DatabaseHelper.CreateConnection("David_Projects")){ using(dbcmd=GetSQLSearchCommand(dbconn)) { } }
using(dbconn=DatabaseHelper.CreateConnection("David_Projects")){ using(dbcmd=GetSQLSearchCommand(dbconn)) { } }
J JS Mar 13, 2005 #2 I asked a similar question a while back. The answer I got was to use these constructs: using (object1) using (object2) { .... }
I asked a similar question a while back. The answer I got was to use these constructs: using (object1) using (object2) { .... }
D DalePres Mar 13, 2005 #3 FYI, here's the specification reference on the using statement. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_17.asp HTH DalePres MCAD, MCDBA, MCSE
FYI, here's the specification reference on the using statement. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_17.asp HTH DalePres MCAD, MCDBA, MCSE