behnam_tr Active Member Licensed User Longtime User Nov 27, 2019 #1 hi i creat a pdf file in my b4j app using printhtml and jshell and i save that in my app folder then i upload to myhost after runing jshell complet event i use sleep(4000) then file is ready for upload.... now i want to use "wait for" instead of sleep to checking file exist without using sleep how ? thanks
hi i creat a pdf file in my b4j app using printhtml and jshell and i save that in my app folder then i upload to myhost after runing jshell complet event i use sleep(4000) then file is ready for upload.... now i want to use "wait for" instead of sleep to checking file exist without using sleep how ? thanks
Erel B4X founder Staff member Licensed User Longtime User Nov 28, 2019 #2 You cannot use Wait For unless there is an event that is raised when the file is ready. You can decrease the sleep interval. Using Sleep is a good solution in this case. Upvote 0
You cannot use Wait For unless there is an event that is raised when the file is ready. You can decrease the sleep interval. Using Sleep is a good solution in this case.