Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why doesn't the Dir functions fives me an error?

Status
Not open for further replies.

Gti

Programmer
Jul 23, 2001
99
PT
scandir = Dir(DirAchada & "*.cls")

Do While scandir <> &quot;&quot;
FichAbertura = DirAchada & scandir
FichParaEscrever = Destdir
ScanFonteFicheiro FichAbertura, FichParaEscrever
scandir = Dir
Loop

-------------------------------------------------

This is my code, and when scandir = dir is hit, the program gives me an error! The error Says: &quot;Invalid procedure call or argument!&quot; Why?
How can i solve this?
Tkx :eek:)
 
It still not working!

Why do you put the () on DIR?
And what does the strDir=Dir does?
 
Hi,

I bet that you use dir inside ScanFonteFicheiro. That won't work, you can only use dir in one loop at a time...

Sunaj
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top