Click here to Skip to main content
16,005,236 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: List of Hardwares/Softwares Pin
Dave Kreskowiak5-Jan-06 3:20
mveDave Kreskowiak5-Jan-06 3:20 
Questionms flaxgrid control.... Pin
Kamalatharsan4-Jan-06 20:06
Kamalatharsan4-Jan-06 20:06 
AnswerRe: ms flaxgrid control.... Pin
Dave Kreskowiak5-Jan-06 3:18
mveDave Kreskowiak5-Jan-06 3:18 
GeneralRe: ms flaxgrid control.... Pin
Kamalatharsan6-Jan-06 18:45
Kamalatharsan6-Jan-06 18:45 
AnswerRe: ms flaxgrid control.... Pin
Member 21312795-Jan-06 3:55
Member 21312795-Jan-06 3:55 
GeneralRe: ms flaxgrid control.... Pin
Kamalatharsan6-Jan-06 1:41
Kamalatharsan6-Jan-06 1:41 
QuestionVariable Declaration Pin
jcrussell4-Jan-06 17:44
jcrussell4-Jan-06 17:44 
AnswerRe: Variable Declaration Pin
Christian Graus4-Jan-06 17:56
protectorChristian Graus4-Jan-06 17:56 
The reason you should do it in C, is because C requires it. The reason not to do it otherwise is because it makes your code harder to read, and harder to debug. You should read 'Code Complete' to get more insight into good code style, it's an excellent book.

But as a starter - the code posted created a bunch of uninitialised variables, then proceeded to give them all values. How is that useful ? He could have done the same in half the lines, thus increasing readability, and making sure that no variables existed without being given the values you wanted them to start with.


Christian Graus - Microsoft MVP - C++

GeneralRe: Variable Declaration Pin
jcrussell4-Jan-06 20:52
jcrussell4-Jan-06 20:52 
GeneralRe: Variable Declaration Pin
Christian Graus5-Jan-06 10:05
protectorChristian Graus5-Jan-06 10:05 
QuestionGDI+ Exception Pin
militiaware4-Jan-06 15:55
militiaware4-Jan-06 15:55 
AnswerRe: GDI+ Exception Pin
Christian Graus4-Jan-06 16:09
protectorChristian Graus4-Jan-06 16:09 
AnswerRe: GDI+ Exception Pin
Dave Kreskowiak4-Jan-06 17:48
mveDave Kreskowiak4-Jan-06 17:48 
GeneralRe: GDI+ Exception Pin
Christian Graus4-Jan-06 17:53
protectorChristian Graus4-Jan-06 17:53 
GeneralRe: GDI+ Exception Pin
Dave Kreskowiak4-Jan-06 18:18
mveDave Kreskowiak4-Jan-06 18:18 
GeneralRe: GDI+ Exception Pin
Christian Graus4-Jan-06 18:21
protectorChristian Graus4-Jan-06 18:21 
GeneralRe: GDI+ Exception Pin
Dave Kreskowiak4-Jan-06 18:43
mveDave Kreskowiak4-Jan-06 18:43 
GeneralRe: GDI+ Exception Pin
Christian Graus5-Jan-06 10:04
protectorChristian Graus5-Jan-06 10:04 
Questionkindly help me with my probem bout importing data(.xls) to SQL using vb6 code Pin
Estong Odpaga4-Jan-06 14:59
Estong Odpaga4-Jan-06 14:59 
QuestionHow to hide a form? Pin
cylix20004-Jan-06 14:16
cylix20004-Jan-06 14:16 
AnswerRe: How to hide a form? Pin
Christian Graus4-Jan-06 14:40
protectorChristian Graus4-Jan-06 14:40 
AnswerRe: How to hide a form? Pin
militiaware4-Jan-06 15:54
militiaware4-Jan-06 15:54 
AnswerRe: How to hide a form? Pin
Dave Kreskowiak4-Jan-06 17:45
mveDave Kreskowiak4-Jan-06 17:45 
Questionhow to share combobox Pin
microuser_20004-Jan-06 12:37
microuser_20004-Jan-06 12:37 
QuestionNeed to Convert from VB to C# Pin
Hovik314-Jan-06 12:32
Hovik314-Jan-06 12:32 

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.