Article View: comp.lang.basic.visual
Article #288Error with the function Dir
From: Owyn Latane
Date: Tue, 16 May 2000 00:00
Date: Tue, 16 May 2000 00:00
12 lines
1021 bytes
1021 bytes
Hi.
Can anyone please tell me what is wrong here?
Dim sPath As String
Dim sDir As String
sPath = "C:\"
sDir = Dir(sPath, vbDirectory)
I get a "Wrong number of arguments or invalid property assignment." error.
Please reply in english or danish.
Technical Details
Message-ID:
<8fqnb0$1j6n$1@news.cybercity.dk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f51ba,13911145b9a64af1,start X-Google-Attributes: gidf51ba,public X-Google-Thread: f645d,13911145b9a64af1,start X-Google-Attributes: gidf645d,public From: "Owyn Latane" <owyn@email.dk> Subject: Error with the function Dir Date: 2000/05/16 Message-ID: <8fqnb0$1j6n$1@news.cybercity.dk> X-Deja-AN: 623936568 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@cybercity.dk X-Trace: news.cybercity.dk 958455968 52439 212.242.157.229 (16 May 2000 05:46:08 GMT) Organization: CyberCity Internet X-MSMail-Priority: Normal NNTP-Posting-Date: 16 May 2000 05:46:08 GMT Newsgroups: comp.lang.basic.visual,dk.edb.programmering.basic.visual-basic