Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Process object does not go out of scope
Message
From
31/03/2008 12:46:49
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01306828
Message ID:
01307025
Views:
9
>I'm assuming your using VB and not C#. The using statement was added to VB in the 2.0 version.
>
>Using conn As New SqlConnection(dsn)
>  Using cmd As New SqlCommand("SELECT * FROM Employees", conn)
>    conn.Open()
>      Using rdr As SqlDataReader = cmd.ExecuteReader()
>        While rdr.Read()
>          .....
>        End While
>      End Using
>  End Using
>End Using
>
Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform