How can I find out the progress of a powerbasic array sort?
I want to update a progress bar during an array sort.
------------------
I want to update a progress bar during an array sort.
------------------
SortBlock = 50 ' how many elements get sorted per ARRAY SORT NumSorts = NumElments\SortBlock ' integer divide is close enough FOR I = 0 to NumSorts -1 ARRAY SORT MyArray(NumSorts*Sortblock) FOR SortBlock UpdateProgressBar (I/NumSorts *100) * .8 ' figure the presorting gets about 80% of the sort done NEXT I ' with the array partially sorted, sort the whole thing ARRAY SORT MyArray() UpdateProgressBar (100)
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment