Click here to Skip to main content
15,922,512 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: DAtaBinding Problem Pin
Mycroft Holmes24-Aug-08 16:47
professionalMycroft Holmes24-Aug-08 16:47 
AnswerRe: DAtaBinding Problem Pin
rprateek24-Aug-08 21:18
rprateek24-Aug-08 21:18 
AnswerRe: DAtaBinding Problem Pin
Polymorpher27-Aug-08 14:27
Polymorpher27-Aug-08 14:27 
QuestionBinding Problem Pin
vidhish24-Aug-08 1:32
vidhish24-Aug-08 1:32 
AnswerRe: Binding Problem Pin
Mycroft Holmes24-Aug-08 16:48
professionalMycroft Holmes24-Aug-08 16:48 
Questionupdate the datagrid Pin
Ahamed Azeem24-Aug-08 0:28
Ahamed Azeem24-Aug-08 0:28 
AnswerRe: update the datagrid Pin
paas24-Aug-08 0:57
paas24-Aug-08 0:57 
QuestionBinary files - determing format or internal structure Pin
Dennis Lokken23-Aug-08 8:15
Dennis Lokken23-Aug-08 8:15 
AnswerRe: Binary files - determing format or internal structure Pin
csciwizard23-Aug-08 9:05
csciwizard23-Aug-08 9:05 
GeneralRe: Binary files - determing format or internal structure Pin
Dennis Lokken23-Aug-08 10:18
Dennis Lokken23-Aug-08 10:18 
GeneralRe: Binary files - determing format or internal structure [modified] Pin
Dennis Lokken24-Aug-08 8:11
Dennis Lokken24-Aug-08 8:11 
QuestionNeed help with SystemParametersInfo (setting desktop work area) Pin
xx77abs23-Aug-08 8:03
xx77abs23-Aug-08 8:03 
AnswerRe: Need help with SystemParametersInfo (setting desktop work area) Pin
Dave Kreskowiak24-Aug-08 17:28
mveDave Kreskowiak24-Aug-08 17:28 
GeneralRe: Need help with SystemParametersInfo (setting desktop work area) Pin
xx77abs25-Aug-08 8:14
xx77abs25-Aug-08 8:14 
QuestionAdding Windows Form to DLL? Pin
LloydA11123-Aug-08 4:33
LloydA11123-Aug-08 4:33 
AnswerRe: Adding Windows Form to DLL? Pin
Thomas Stockwell23-Aug-08 7:20
professionalThomas Stockwell23-Aug-08 7:20 
AnswerRe: Adding Windows Form to DLL? Pin
Mycroft Holmes23-Aug-08 22:52
professionalMycroft Holmes23-Aug-08 22:52 
QuestionUsing temp data in a loop [modified] Pin
Netblue23-Aug-08 3:33
Netblue23-Aug-08 3:33 
On the memory side of things, is it better to use the second example versus the first one, or does it not really matter in the end?

How is memory allocated in the two situations? Will the first one create a ton of objects that get cleaned up after they drop out of scope? Will this affect memory and garbage collection?

For i As Integer = 0 To costTable.Rows.Count - 1
Dim row As DataRow = costTable.Rows(i)
'use the data in the row
Next

Dim row As DataRow = Nothing
For i As Integer = 0 To costTable.Rows.Count - 1
row = costTable.Rows(i)
'use the data in the row
Next


modified on Saturday, August 23, 2008 2:08 PM

AnswerRe: Using temp data in a loop Pin
xx77abs23-Aug-08 8:04
xx77abs23-Aug-08 8:04 
AnswerRe: Using temp data in a loop Pin
Guffa23-Aug-08 15:00
Guffa23-Aug-08 15:00 
GeneralRe: Using temp data in a loop Pin
Netblue23-Aug-08 16:05
Netblue23-Aug-08 16:05 
GeneralRe: Using temp data in a loop Pin
Guffa24-Aug-08 12:47
Guffa24-Aug-08 12:47 
QuestionReading arguments from external associated file Pin
WhitW22-Aug-08 23:48
WhitW22-Aug-08 23:48 
AnswerRe: Reading arguments from external associated file Pin
jzonthemtn23-Aug-08 2:03
jzonthemtn23-Aug-08 2:03 
QuestionAvoid connecting to a database through a connection string Pin
John Kh22-Aug-08 23:02
John Kh22-Aug-08 23:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.