Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Thermometer Bar
Message
De
10/09/2004 11:02:25
 
 
À
10/09/2004 10:54:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00941038
Message ID:
00941056
Vues:
10
Hi Michael,

I used to use thermometer functions like that for copying files but was never real happy with them, especially when the files were large. You may want to take a look at the late Ed Rauh's SHFileOperation functions in the API section. It uses calls to the windows file copy operations including the graphic animations/progress bars.

Bill


>Thanks! That's what I was looking for.
>
>
>
>>The number of files is dynamic, but currently there are 179. I'd like to iterate through a loop and update the progress bar, but I need a formula for doing so because after 100 files the progress bar closes.
>>Anybody got any ideas?
>>
>>Expanding on what Sergey suggested, you need to tell the progress bar what percentage of the files have been copied, not the number of files. The formula should look like this: (nAlreadyCopied/nFilesToCopy)*100 and maybe even INT((nAlreadyCopied/nFilesToCopy)*100) to give it whole numbers from 1 to 100.
>>
>>HTH,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform