Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
InitDir / DirList
Greetings!
Using OI 9.1.1
I have an InitDir/DirList issue.
This code works fine when run from the system monitor:
compile Subroutine initdir_test(dummy)
nl= char(13):char(10)
fnpath = "\\marvel\mediafiles\video\3\*.jpg"
initdir fnpath
allfiles = dirlist()
allfiles1 = allfiles
Swap @fm With nl In allfiles1
OSWrite "allfiles1: ":allfiles1 On "c:\1temp\initdir_test1.txt"
return
(allfiles1 contains all the .jpg files in the folder.
As verified by initdir_test1.txt.)
However, when the same routine is called from a subroutine which is called by oecgi3,
it does not work as expected. ( allfiles1 is empty)
I'm out of ideas....
Have fun,
Paxton
Using OI 9.1.1
I have an InitDir/DirList issue.
This code works fine when run from the system monitor:
compile Subroutine initdir_test(dummy)
nl= char(13):char(10)
fnpath = "\\marvel\mediafiles\video\3\*.jpg"
initdir fnpath
allfiles = dirlist()
allfiles1 = allfiles
Swap @fm With nl In allfiles1
OSWrite "allfiles1: ":allfiles1 On "c:\1temp\initdir_test1.txt"
return
(allfiles1 contains all the .jpg files in the folder.
As verified by initdir_test1.txt.)
However, when the same routine is called from a subroutine which is called by oecgi3,
it does not work as expected. ( allfiles1 is empty)
I'm out of ideas....
Have fun,
Paxton
Comments
When I get a moment I'll test this out on my web server development environment.
Paxton