🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.basic.visual
2 messages
2 total messages Started by Owyn Latane Tue, 16 May 2000 00:00
Error with the function Dir
#288
Author: Owyn Latane
Date: Tue, 16 May 2000 00:00
12 lines
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.
Re: Error with the function Dir
#289
Author: negamagnet
Date: Wed, 17 May 2000 00:00
31 lines
1371 bytes
Couldn't see much wrong with that.  Works fine in
my projects (assuming there's not an error
reading the C:\ drive).

Have you got any properties/references/components
missing or not set up?

Tony

In article <8fqnb0$1j6n$1@news.cybercity.dk>,
  "Owyn Latane" <owyn@email.dk> wrote:
> 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.
>
>



Sent via Deja.com http://www.deja.com/
Before you buy.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads