Topic "How do i change the output of e.OverallProgress"

Author Message
[View user's profile]

Joined: 2014-11-06
Posts: 2

I have a problem with the SessionFileTransferProgress.
When i use: e.OverallProgress i get values of "0.00" where it counts up like "0.02" to "1" How do i get them to be "0" to "100" So that I can use this for a progressbar in Do I need to use a math trick to change this? if so please explain.

Any help much appreciated.

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
The "math trick" is to multiply the value by 100.
Martin Prikryl
[View user's profile]

Joined: 2014-11-06
Posts: 2
Thanks mate, * 100 that did the trick.

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License