Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

progress bar technique please give me a hints

Status
Not open for further replies.

jancypaul

Programmer
Aug 3, 2007
20
GB
How can I impliment progress bar in powerbuilder while using the command importfile.

I want to show progress bar in a form upto importfile(from dbf) into a datawindow control, completed.
Please give me a hints
 
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.
 
Please can you provide me the tips to show a popup window while running importfile()
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top