![]() |
some functions
i want to get The Contains from the Properties Window :
i mean when you RightClick on any Folder and click on Properties then you see the Tab General here you can see Contains : < x files , x folders > . so is there any function or solution to get the Properties Contains Value without viewing the Properties Window . also i have changed the MAX of a ProgressBar to 280 , how could i set a Label Caption to view the Progressbar step from 0 to 100 % , i mean for exemple when the ProgressBar is at step 280 ( the Last Step ) the Label Caption is 100 % . so the Progress Step of this Label is from 0 to 100 although the ProgressBar Step is from 0 to 280 . Thank you all . |
Re: some functions
1) FindFirst()/FindNext() to enumerate the containing files
2) .Position / .Max |
Re: some functions
I did not surely understand what you mean about the properties. Do you want to know how many files and subfolders a folder contains?
And for your second question: it' s a simple calculation (percentage).
Delphi-Quellcode:
[edit] Wrong usage of colons :oops: [/edit]
percent := Round(ProgressBar.Position / ProgressBar.Max * 100);
|
Re: some functions
[quote="DeddyH"]I did not surely understand what you mean about the properties. Do you want to know how many files and subfolders a folder contains?
quote] Yes , but i want to get the File Count in a folder directly i mean without the Use of FindFirst()/FindNext() because if i have 10000000 folders and subfolders this will take 1 Day to do the Calcul . thank you |
Re: some functions
AFAIK the explorer does the same (FindFirst/FindNext). When I right-click a large folder and query its properties I can watch this behaviour.
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 21:23 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz