GetFileList not working under 6.00

Just starting out? Need help? Post your questions and find answers here.
daveb
User
User
Posts: 30
Joined: Tue Jun 07, 2022 6:12 pm

GetFileList not working under 6.00

Post 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
infratec
Always Here
Always Here
Posts: 7633
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: GetFileList not working under 6.00

Post 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.
daveb
User
User
Posts: 30
Joined: Tue Jun 07, 2022 6:12 pm

Re: GetFileList not working under 6.00

Post by daveb »

Thanks infratec. Duh! It's always embarrassing to have something pointed out that should have been so obvious :oops:

Dave
infratec
Always Here
Always Here
Posts: 7633
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: GetFileList not working under 6.00

Post by infratec »

No problem, you are welcome.
Sometimes a second pair of eyes are needed.
User avatar
idle
Always Here
Always Here
Posts: 5943
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: GetFileList not working under 6.00

Post by idle »

updated the example to use the current date
Post Reply