Re: A5_DownLoadFile() revisited
<tbl_pointer>.persist() keeps the table open so that neither of the download commands, A5_DownLoadFile() or HTTP_Download(), will close it. I though this was obvious from my previous post. Without the "persist" command, both of those download commands will close the table - but only on some systems according to Selwyn.
Just like I always do. With <tbl_pointer>.close(). Or, as Tim said earlier, "I used persist() after the table open. and it stayed open till I used close()"
I'm not sure what the "it" is that you are referring to. If you are talking about putting the "persist" command after the download command, telling it to "persist" after it's closed won't do much good. The persist() command has to be issued before the loop starts.
If you are talking about putting a <tbl_pointer>.close() command inside the loop - you wouldn't do that in any other loop so why do it in this case? Wait until you are actually done using the table, then issue the .close() command. That could be immediately after the loop or, depending on what the table is used for, way past the end of the loop.
Of course I've tested this. I usually test all new ideas before I post them. If not, then either I say they haven't been tested or else they aren't new to me. I try not to post solutions unless I'm at least 99% sure they will work. And, yes, it took a long time to test - probably a whole minute or so since it was a simple modification of the sample app posted above. I can guarantee you've spent far more time writing responses to this thread than I did testing the .persist() command.
Can I say this solution, or any other, will work in every situation? No, but I can say it worked on my system in the situation described.
Originally posted by G Gabriel
View Post
Originally posted by G Gabriel
View Post
Originally posted by G Gabriel
View Post
If you are talking about putting a <tbl_pointer>.close() command inside the loop - you wouldn't do that in any other loop so why do it in this case? Wait until you are actually done using the table, then issue the .close() command. That could be immediately after the loop or, depending on what the table is used for, way past the end of the loop.
Originally posted by G Gabriel
View Post
Can I say this solution, or any other, will work in every situation? No, but I can say it worked on my system in the situation described.
Comment