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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Just a silly question...

Status
Not open for further replies.

Gti

Programmer
Jul 23, 2001
99
PT
Public Function ScanFonteDir(Origdir, Destdir) As String
Dim scandir As String
Dim temp As String
temp = Destdir


scandir = Dir(Origdir & "\*.cls")

Do While scandir <> &quot;&quot;
ScanFonteFich scandir, temp
scandir = Dir
Loop

Exit Function

This is my code... when i was compiling the program i had destdir instead of temp and the program crashed! Why i have to give the same value to temp?
 
try this in your function parameters:
ByVal Destdir as String
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top