unknown error

06-07-2005, 11:51 AM
What's the problem with this code ?!

If Dir(Left$(Drive1.List(1)) & ":\WINDOWS") <> "" Then MsgBox "something"

I get an error :

"Type-declaration character does not match declared data type"

06-07-2005, 11:53 AM
You have Left$ in there with no integer of numbers to return from the left.

06-07-2005, 11:54 AM
Well you are not calling Left$() correctly - it accepts 2 parameters, not one.

06-07-2005, 11:55 AM
One thing I notice right away is that you aren't assigning how many characters the Left$() function is supposed to retrieve ie Left$(drive1.list(1), 1)

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum