Click here to Skip to main content
15,885,278 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCheck fields for specific characters Pin
rhon_ridge22-Feb-07 3:15
rhon_ridge22-Feb-07 3:15 
AnswerRe: Check fields for specific characters Pin
nlarson1122-Feb-07 6:01
nlarson1122-Feb-07 6:01 
QuestionWhen to close streamreaders/writers Pin
Marcus J. Smith22-Feb-07 3:12
professionalMarcus J. Smith22-Feb-07 3:12 
AnswerRe: When to close streamreaders/writers Pin
Dave Kreskowiak22-Feb-07 5:05
mveDave Kreskowiak22-Feb-07 5:05 
GeneralRe: When to close streamreaders/writers Pin
Marcus J. Smith22-Feb-07 5:21
professionalMarcus J. Smith22-Feb-07 5:21 
GeneralRe: When to close streamreaders/writers Pin
Dave Kreskowiak22-Feb-07 5:25
mveDave Kreskowiak22-Feb-07 5:25 
GeneralRe: When to close streamreaders/writers Pin
Marcus J. Smith22-Feb-07 5:28
professionalMarcus J. Smith22-Feb-07 5:28 
GeneralRe: When to close streamreaders/writers Pin
Dave Kreskowiak22-Feb-07 5:56
mveDave Kreskowiak22-Feb-07 5:56 
If you're writing to all 5 files for each record you write, no there isn't unless you turn off the automatic formatting in Tools/Options. But do that also turns off the formatting for every file in every project you open from then on.

If your picking which file you are going to write to for each record, then create a StreamWriter when you need to write to that particulare file. Don't open the file(s) unless you need to write to it. But, there is a performance penality for doing this, so you might want to test it before you nail it down as production code. But, if you sacrifice performance just to make the code "look pretty", I'll frown up you if you ever end up on my team...

Basically, no there isn't. It's not so bad. I've seen C++ and C# code indented 20-30 levels deep because of nested IF's and loops. It happens...


Dave Kreskowiak
Microsoft MVP - Visual Basic


GeneralRe: When to close streamreaders/writers Pin
Marcus J. Smith22-Feb-07 6:13
professionalMarcus J. Smith22-Feb-07 6:13 
GeneralRe: When to close streamreaders/writers Pin
Dave Kreskowiak22-Feb-07 6:28
mveDave Kreskowiak22-Feb-07 6:28 
QuestionRAR Pin
Navneet Hegde22-Feb-07 1:22
Navneet Hegde22-Feb-07 1:22 
AnswerRe: RAR Pin
Dave Kreskowiak22-Feb-07 3:17
mveDave Kreskowiak22-Feb-07 3:17 
QuestionSetup Project won't build/re-build Pin
HamCoder22-Feb-07 0:52
HamCoder22-Feb-07 0:52 
AnswerRe: Setup Project won't build/re-build Pin
Johan Hakkesteegt22-Feb-07 21:07
Johan Hakkesteegt22-Feb-07 21:07 
QuestionPInvoke Imbalance Stack function Pin
sundar_mca22-Feb-07 0:39
sundar_mca22-Feb-07 0:39 
AnswerRe: PInvoke Imbalance Stack function Pin
Guffa22-Feb-07 0:54
Guffa22-Feb-07 0:54 
GeneralRe: PInvoke Imbalance Stack function Pin
sundar_mca22-Feb-07 1:24
sundar_mca22-Feb-07 1:24 
GeneralRe: PInvoke Imbalance Stack function Pin
Dave Kreskowiak22-Feb-07 3:16
mveDave Kreskowiak22-Feb-07 3:16 
QuestionExport DatagridView to Excel Pin
Socheat.Net21-Feb-07 22:40
Socheat.Net21-Feb-07 22:40 
AnswerRe: Export DatagridView to Excel Pin
Dave Kreskowiak22-Feb-07 4:44
mveDave Kreskowiak22-Feb-07 4:44 
QuestionSet a column in datagrid to display a time. Pin
kendo1721-Feb-07 22:04
kendo1721-Feb-07 22:04 
AnswerRe: Set a column in datagrid to display a time. Pin
Christian Graus21-Feb-07 23:00
protectorChristian Graus21-Feb-07 23:00 
QuestionHow I add referense to? Pin
Agbaria Ahmad21-Feb-07 21:25
Agbaria Ahmad21-Feb-07 21:25 
AnswerRe: How I add referense to? Pin
teejayem27-Feb-07 15:16
teejayem27-Feb-07 15:16 
QuestionRemote port communication Pin
shreekar21-Feb-07 20:45
shreekar21-Feb-07 20:45 

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.