Jump to content
Sign in to follow this  
Ysengrim

View a part of a variabel

Recommended Posts

Ysengrim

While downloading a file I use the command @InetGetBytesRead to let see the user how much is downloaded already

But to let the progression not in Bytes but in Megabytes I used @InetGetBytesRead/1000

so far so good

but its a very long number and I only will show on the screen the 4 first numbers ( example 14.52 Mb)

Wich command do I have to use to filter out the rest?

to compare : in Microsoft Excel you can use the formats "##.##"

thanks

Ysengrim

Share this post


Link to post
Share on other sites
Ysengrim

Thank you very much

I also found a way : $MBytes = StringLeft(@InetGetBytesRead/1000, 5)

but your solution is shorter and better !

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.