Advertisement
Advertisement
| 04.15.2008 at 02:11AM PDT, ID: 23323005 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 04.15.2008 at 02:29AM PDT, ID: 21357147 |
| 04.15.2008 at 02:32AM PDT, ID: 21357160 |
| 04.15.2008 at 02:47AM PDT, ID: 21357212 |
| 04.15.2008 at 03:01AM PDT, ID: 21357270 |
| 04.15.2008 at 03:13AM PDT, ID: 21357312 |
| 04.15.2008 at 03:13AM PDT, ID: 21357313 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: |
unit FolderMonitorTimer;
interface
uses
SysUtils, Classes, ExtCtrls, Dialogs, Windows, Consts, Messages, Forms;
type
TOnFilesFoundEvent = Procedure(Sender :TObject; var AFiles :TStrings) of Object;
type
TFolderMonitorTimer = class(TTimer)
private
FWatchFolder :String;
FOnTimer: TOnFilesFoundEvent;
procedure SetOnTimer(Value: TOnFilesFoundEvent);
{ Private declarations }
protected
Procedure Timer; override;
{ Protected declarations }
public
{ Public declarations }
published
Property WatchFolder :String Read FWatchFolder Write FWatchFolder;
Property OnTimer :TOnFilesFoundEvent Read FOnTimer Write SetOnTimer;
{ Published declarations }
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Samples', [TFolderMonitorTimer]);
end;
{ TFolderMonitorTimer }
procedure TFolderMonitorTimer.SetOnTimer(Value: TOnFilesFoundEvent);
begin
FOnTimer := Value;
end;
procedure TFolderMonitorTimer.Timer;
var
slTemp :TStrings;
Rec :TSearchRec;
I :Integer;
begin
If not Assigned(FOnTimer) then Exit;
If not DirectoryExists(WatchFolder) then Exit;
slTemp := TStringList.Create;
Try
I := FindFirst(WatchFolder + '\*.*', faAnyFile, Rec);
While I = 0 do
begin
If Rec.Name[1] <> '.' then slTemp.Add(WatchFolder + '\' + Rec.Name);
I := FindNext(Rec);
end;
Finally
slTemp.Free;
end;
FOnTimer(Self, slTemp);
end;
|
| 04.15.2008 at 03:25AM PDT, ID: 21357356 |
| 04.15.2008 at 03:26AM PDT, ID: 21357359 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: |
unit FolderMonitorTimer;
interface
uses
SysUtils, Classes, ExtCtrls, Dialogs, Windows, Consts, Messages, Forms;
type
TOnFilesFoundEvent = Procedure(Sender :TObject; var AFiles :TStrings) of Object;
type
TFolderMonitorTimer = class(TTimer)
private
FWatchFolder :String;
FOnExTimer: TOnFilesFoundEvent;
FOnTimer :TNotifyEvent;
Procedure SetOnExTimer(Value: TOnFilesFoundEvent);
Procedure Dummy(Sender :TObject);
{ Private declarations }
protected
Procedure Timer; override;
{ Protected declarations }
public
{ Public declarations }
published
Property WatchFolder :String Read FWatchFolder Write FWatchFolder;
Property OnExTimer :TOnFilesFoundEvent Read FOnExTimer Write SetOnExTimer;
{ Published declarations }
end;
procedure Register;
implementation
procedure Register;
begin
RegisterComponents('Samples', [TFolderMonitorTimer]);
end;
{ TFolderMonitorTimer }
procedure TFolderMonitorTimer.Dummy(Sender: TObject);
begin
//Dummy code to disable OnTimer() event in base component.
end;
procedure TFolderMonitorTimer.SetOnExTimer(Value: TOnFilesFoundEvent);
begin
FOnExTimer := Value;
FOnTimer := Dummy;
end;
procedure TFolderMonitorTimer.Timer;
var
slTemp :TStrings;
Rec :TSearchRec;
I :Integer;
begin
If not Assigned(FOnExTimer) then Exit;
If not DirectoryExists(WatchFolder) then Exit;
slTemp := TStringList.Create;
Try
I := FindFirst(WatchFolder + '\*.*', faAnyFile, Rec);
While I = 0 do
begin
If Rec.Name[1] <> '.' then slTemp.Add(WatchFolder + '\' + Rec.Name);
I := FindNext(Rec);
end;
Finally
slTemp.Free;
end;
FOnExTimer(Self, slTemp);
end;
end.
|
| 04.15.2008 at 03:32AM PDT, ID: 21357382 |
| 04.15.2008 at 03:33AM PDT, ID: 21357390 |
| 04.15.2008 at 03:40AM PDT, ID: 21357418 |
| 04.15.2008 at 04:13AM PDT, ID: 21357561 |
| 04.15.2008 at 04:31AM PDT, ID: 21357637 |
| 04.15.2008 at 04:33AM PDT, ID: 21357654 |
| 04.15.2008 at 04:39AM PDT, ID: 21357677 |
| 04.15.2008 at 04:48AM PDT, ID: 21357716 |
| 04.15.2008 at 04:50AM PDT, ID: 21357725 |
| 04.16.2008 at 12:35AM PDT, ID: 21365513 |
| 04.16.2008 at 12:59AM PDT, ID: 21365622 |
| 04.16.2008 at 04:20AM PDT, ID: 21366470 |
| 04.16.2008 at 04:23AM PDT, ID: 21366480 |
| 04.16.2008 at 11:41AM PDT, ID: 21370722 |