Click here to Skip to main content
15,914,222 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionConverting Excel VBA module code to VB 2005/VB.NET Pin
Graham Latto14-Mar-08 14:39
Graham Latto14-Mar-08 14:39 
GeneralRe: Converting Excel VBA module code to VB 2005/VB.NET Pin
Paul Conrad14-Mar-08 14:59
professionalPaul Conrad14-Mar-08 14:59 
QuestionRe: Converting Excel VBA module code to VB 2005/VB.NET Pin
Graham Latto14-Mar-08 15:26
Graham Latto14-Mar-08 15:26 
GeneralRe: Converting Excel VBA module code to VB 2005/VB.NET Pin
ChandraRam16-Mar-08 23:29
ChandraRam16-Mar-08 23:29 
QuestionCheck for a foder or a file Pin
Assaf8214-Mar-08 10:50
Assaf8214-Mar-08 10:50 
GeneralRe: Check for a foder or a file Pin
Dave Kreskowiak14-Mar-08 10:55
mveDave Kreskowiak14-Mar-08 10:55 
GeneralRe: Check for a foder or a file Pin
Assaf8214-Mar-08 10:57
Assaf8214-Mar-08 10:57 
GeneralRe: Check for a foder or a file Pin
Dave Kreskowiak14-Mar-08 12:22
mveDave Kreskowiak14-Mar-08 12:22 
It's not a matter of a function giving you what you want. It's your logic that's flawed here. Your methods that check for the existance of a folder or file should just return a Boolean. They shouldn't put up a MessageBox at all.

Think about it. You call both functions with the same name. If they both return false, then the entered name doesn't exist as either a file or a folder. If one of them returns true, then I guess you've found out which it is. If they both return true, you've seriously messed up your checking code in one or both of your methods.



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




Generalcheck for the existance of a folder Pin
Assaf8214-Mar-08 10:25
Assaf8214-Mar-08 10:25 
GeneralRe: check for the existance of a folder Pin
Assaf8214-Mar-08 10:30
Assaf8214-Mar-08 10:30 
GeneralStrange trouble in Calling a DLL compiled in C++ Pin
Capitanevs14-Mar-08 5:03
Capitanevs14-Mar-08 5:03 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Tim Carmichael14-Mar-08 5:25
Tim Carmichael14-Mar-08 5:25 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Capitanevs15-Mar-08 10:04
Capitanevs15-Mar-08 10:04 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Dave Kreskowiak14-Mar-08 8:10
mveDave Kreskowiak14-Mar-08 8:10 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Capitanevs15-Mar-08 9:59
Capitanevs15-Mar-08 9:59 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Dave Kreskowiak15-Mar-08 11:22
mveDave Kreskowiak15-Mar-08 11:22 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Capitanevs16-Mar-08 11:24
Capitanevs16-Mar-08 11:24 
GeneralRe: Strange trouble in Calling a DLL compiled in C++ Pin
Dave Kreskowiak17-Mar-08 5:22
mveDave Kreskowiak17-Mar-08 5:22 
QuestionMORE TEST PERFORMED: the situation is very curious and annoying!! [modified] Pin
Capitanevs16-Mar-08 13:09
Capitanevs16-Mar-08 13:09 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Dave Kreskowiak17-Mar-08 5:25
mveDave Kreskowiak17-Mar-08 5:25 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Capitanevs17-Mar-08 11:37
Capitanevs17-Mar-08 11:37 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Dave Kreskowiak17-Mar-08 12:58
mveDave Kreskowiak17-Mar-08 12:58 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Capitanevs19-Mar-08 12:07
Capitanevs19-Mar-08 12:07 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Dave Kreskowiak19-Mar-08 12:57
mveDave Kreskowiak19-Mar-08 12:57 
GeneralRe: MORE TEST PERFORMED: the situation is very curious and annoying!! Pin
Capitanevs21-Mar-08 5:41
Capitanevs21-Mar-08 5:41 

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.