AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

some functions

Ein Thema von mohfa · begonnen am 2. Mai 2008 · letzter Beitrag vom 2. Mai 2008
Antwort Antwort
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#1

some functions

  Alt 2. Mai 2008, 20:09
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 .
  Mit Zitat antworten Zitat
mkinzler
(Moderator)

Registriert seit: 9. Dez 2005
Ort: Heilbronn
39.851 Beiträge
 
Delphi 11 Alexandria
 
#2

Re: some functions

  Alt 2. Mai 2008, 20:18
1) FindFirst()/FindNext() to enumerate the containing files
2) .Position / .Max
Markus Kinzler
  Mit Zitat antworten Zitat
Benutzerbild von DeddyH
DeddyH

Registriert seit: 17. Sep 2006
Ort: Barchfeld
27.537 Beiträge
 
Delphi 11 Alexandria
 
#3

Re: some functions

  Alt 2. Mai 2008, 20:29
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).percent := Round(ProgressBar.Position / ProgressBar.Max * 100); [edit] Wrong usage of colons [/edit]
Detlef
"Ich habe Angst vor dem Tag, an dem die Technologie unsere menschlichen Interaktionen übertrumpft. Die Welt wird eine Generation von Idioten bekommen." (Albert Einstein)
Dieser Tag ist längst gekommen
  Mit Zitat antworten Zitat
mohfa

Registriert seit: 11. Feb 2007
97 Beiträge
 
Delphi 7 Enterprise
 
#4

Re: some functions

  Alt 2. Mai 2008, 21:08
[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
  Mit Zitat antworten Zitat
Benutzerbild von DeddyH
DeddyH

Registriert seit: 17. Sep 2006
Ort: Barchfeld
27.537 Beiträge
 
Delphi 11 Alexandria
 
#5

Re: some functions

  Alt 2. Mai 2008, 21:11
AFAIK the explorer does the same (FindFirst/FindNext). When I right-click a large folder and query its properties I can watch this behaviour.
Detlef
"Ich habe Angst vor dem Tag, an dem die Technologie unsere menschlichen Interaktionen übertrumpft. Die Welt wird eine Generation von Idioten bekommen." (Albert Einstein)
Dieser Tag ist längst gekommen
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:54 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz