Public Function ScanFonteDir(Origdir, Destdir) As String
Dim scandir As String
Dim temp As String
temp = Destdir
scandir = Dir(Origdir & "\*.cls"
Do While scandir <> ""
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?
Dim scandir As String
Dim temp As String
temp = Destdir
scandir = Dir(Origdir & "\*.cls"
Do While scandir <> ""
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?