Page 1 of 1

GetFileList not working under 6.00

Posted: Mon Oct 17, 2022 7:49 pm
by daveb
I am not sure if I should post this as a new topic or resurrect on old thread.
In the past I have used idle's "GetFileList" code: viewtopic.php?t=51878 but something appears to have changed. On the same Win 10 PC, If I run the unmodified code in PB 7.53 (x64) it accurately displays the file list in the debug window, but with PB 6.00 (x64) there are no error messages, but all that is displayed is a single line of plus signs.
I have double checked that #PB_Compiler_Home in PB 6.00 returns the correct path and the files are in the correct sub-directories. I keep going back reviewing the code, but I cannot track down the problem.

Any thoughts or pointers would bee appreciated.

Dave

Re: GetFileList not working under 6.00

Posted: Mon Oct 17, 2022 8:00 pm
by infratec
Have you changed the following line from

Code: Select all

Global EndDate = Date(2016,12,31,23,59,59)
to

Code: Select all

Global EndDate = Date(2022,12,31,23,59,59)
:?:

The date of the new files is ... newer.

Re: GetFileList not working under 6.00

Posted: Mon Oct 17, 2022 8:12 pm
by daveb
Thanks infratec. Duh! It's always embarrassing to have something pointed out that should have been so obvious :oops:

Dave

Re: GetFileList not working under 6.00

Posted: Mon Oct 17, 2022 8:18 pm
by infratec
No problem, you are welcome.
Sometimes a second pair of eyes are needed.

Re: GetFileList not working under 6.00

Posted: Tue Oct 18, 2022 7:15 am
by idle
updated the example to use the current date