That I know of, (not to say it's not possible), there's no method for getting the status of an ImportFile operation. Only two suggestions I can put on the table at the moment is running the import operation multiple times, and getting the average time, and setting the status based on the "known" load time. Often, on operations like this, I just pop up a PopUp window that says "Loading..." or the like to notify the user that something is going on.
I'm not much of a powerbuilder programmer, but in java I know you could do something revolving the following logic.
1. Get the file size
2. Set progress Bar to 0
3. Begin importing
4. Get amount of data imported thus far
5. progress bar = (originalData - dataWritten)/originalData
Im not sure how that will help you here though maybe it help think things through.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.