unknown error

AnsiDB
06-07-2005, 10: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"

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

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

trisight
06-07-2005, 10: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