|
|
|
#1
|
||||
|
||||
|
Help function ProgressPercent
Help function ProgressPercent
I'm trying to use function ProgressPercent But it works only > LabelPct.Caption: = IntToStr (ProgressPercent) + '%'; I wanted to add + chr (48 + OveralPct mod 10) + '%' '.'; failing to add is not correct (Example: stay like 45.4%) Can anyone help Quote:
|
| Sponsored Links |
|
#2
|
||||
|
||||
|
Use this
Function FloatToStrDeci(Float: Extended; DeciCount: Integer): String; Begin Result:= Format('%.'+IntToStr(DeciCount)+'n', [Float]); StringChange(Result, ',', ','); while ((Result[Length(Result)] = '0') or (Result[Length(Result)] = ',')) and (Pos(',', Result) > 0) do SetLength(Result, Length(Result)-1); End; FloatToStrDeci(Float value,The number of decimals you want) |
| The Following User Says Thank You to Razor12911 For This Useful Post: | ||
buttignol (10-08-2016) | ||
|
#3
|
||||
|
||||
|
I can not add
LabelPct.Caption := |
|
#4
|
||||
|
||||
|
Well you have to declare and create one if you can't use the object.
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Blackbox Inno Setup Script | Kurutucu | Conversion Tutorials | 1190 | 18-08-2019 22:43 |
| Useful Dll for Inno Setup users | peterf1999 | Conversion Tutorials | 88 | 01-12-2017 16:00 |
| Cant get inno setup to decompress archive during installation! | surumanboy | PC Games | 16 | 29-05-2013 00:26 |
| Progress bar for Tasks | danswano | PC Games - CD/DVD Conversions | 22 | 09-03-2013 12:09 |