Click here to Skip to main content
16,010,351 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Odd question of the day: Can 1 filestream object be re-used to read several files? Pin
Jon_Boy15-Aug-08 6:49
Jon_Boy15-Aug-08 6:49 
AnswerRe: Odd question of the day: Can 1 filestream object be re-used to read several files? Pin
astanton197815-Aug-08 7:04
astanton197815-Aug-08 7:04 
GeneralRe: Odd question of the day: Can 1 filestream object be re-used to read several files? Pin
jzonthemtn15-Aug-08 7:06
jzonthemtn15-Aug-08 7:06 
GeneralRe: Odd question of the day: Can 1 filestream object be re-used to read several files? Pin
astanton197815-Aug-08 7:10
astanton197815-Aug-08 7:10 
GeneralRe: Odd question of the day: Can 1 filestream object be re-used to read several files? Pin
Jon_Boy15-Aug-08 7:43
Jon_Boy15-Aug-08 7:43 
GeneralRe: Odd question of the day: Can 1 filestream object be re-used to read several files? Pin
astanton197815-Aug-08 8:44
astanton197815-Aug-08 8:44 
GeneralRe: Odd question of the day: Can 1 filestream object be re-used to read several files? Pin
Jon_Boy15-Aug-08 8:59
Jon_Boy15-Aug-08 8:59 
GeneralRe: Odd question of the day: Can 1 filestream object be re-used to read several files? Pin
astanton197815-Aug-08 9:05
astanton197815-Aug-08 9:05 
No. You are only declaring one strFile and re-using it like I explained in the middle of the last post.

If you want, you can also do
For x as Integer = 0 to strFiles.Length -1
'do operations with strFiles(x)
Next 'x


Strings being immutable refers to the fact that they cannot be changed. New ones are created and replace the last one.

1K strings is really not a lot and either method would work well. You will see object creation cost saving benefits when dealing with larger and more complex objects (like Streams/ UI Controls, iTextSharp PDF objects).
GeneralRe: Odd question of the day: Can 1 filestream object be re-used to read several files? Pin
Jon_Boy15-Aug-08 13:12
Jon_Boy15-Aug-08 13:12 
QuestionVB.net and Access Database Pin
Rhoden15-Aug-08 1:46
Rhoden15-Aug-08 1:46 
AnswerRe: VB.net and Access Database Pin
Manas Bhardwaj15-Aug-08 2:37
professionalManas Bhardwaj15-Aug-08 2:37 
AnswerRe: VB.net and Access Database Pin
Ashfield15-Aug-08 2:43
Ashfield15-Aug-08 2:43 
GeneralRe: VB.net and Access Database Pin
Rhoden15-Aug-08 6:08
Rhoden15-Aug-08 6:08 
QuestionThe remote server returned an error: (500) Internal Server Error. Pin
Ebube15-Aug-08 1:12
Ebube15-Aug-08 1:12 
AnswerRe: The remote server returned an error: (500) Internal Server Error. Pin
Ashfield15-Aug-08 1:21
Ashfield15-Aug-08 1:21 
AnswerRe: The remote server returned an error: (500) Internal Server Error. Pin
Ebube15-Aug-08 1:46
Ebube15-Aug-08 1:46 
AnswerRe: The remote server returned an error: (500) Internal Server Error. Pin
astanton197815-Aug-08 7:06
astanton197815-Aug-08 7:06 
QuestionUserControl Development and the StyleChanged Event Pin
Graham Irons14-Aug-08 21:32
Graham Irons14-Aug-08 21:32 
AnswerRe: UserControl Development and the StyleChanged Event Pin
~V~14-Aug-08 21:54
~V~14-Aug-08 21:54 
GeneralRe: UserControl Development and the StyleChanged Event Pin
Graham Irons14-Aug-08 22:10
Graham Irons14-Aug-08 22:10 
GeneralRe: UserControl Development and the StyleChanged Event Pin
~V~14-Aug-08 22:32
~V~14-Aug-08 22:32 
GeneralRe: UserControl Development and the StyleChanged Event Pin
Mycroft Holmes14-Aug-08 22:38
professionalMycroft Holmes14-Aug-08 22:38 
GeneralRe: UserControl Development and the StyleChanged Event Pin
Graham Irons14-Aug-08 22:43
Graham Irons14-Aug-08 22:43 
GeneralRe: UserControl Development and the StyleChanged Event Pin
Mycroft Holmes14-Aug-08 22:36
professionalMycroft Holmes14-Aug-08 22:36 
GeneralRe: UserControl Development and the StyleChanged Event Pin
Graham Irons14-Aug-08 22:59
Graham Irons14-Aug-08 22:59 

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.