Jump to content

Variable


Go to solution Solved by JohnOne,

Recommended Posts

Hello guys , i have create a script for my program for get filesize . I get the size and all is right .

But the sum for size folder , in label prin like that

3.32423423482304 MB

I want see like that :

3.32 MB

The variable in a  function 
 global $size= ($image_size + $libs_size + $logs_size + $tools_size)

if $size > 1048576 Then
      $size_a = " MB"
      $size = $size/1048576
   ElseIf $size< 1048576 Then
      $size_a = " bytes"
   EndIf
   local $label_info_size = GUICtrlCreateLabel("The size is:" & $size & $size_a & "." ,100 , 380)
   

Some parts from my code , to neeed... If you want all code tell me please
Link to comment
Share on other sites

  • Moderators

teris1994, you can mark your own topic as answered. Just highlight JohnOne's post as the correct answer, and amend the topic title in your initial post with (Resolved)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...