5. Dezember 2007 17:23
5. Dezember 2007 17:45
IF NOT VARIABLEACTIVE(DirectoryAutomation) THEN CREATE(DirectoryAutomation);
IF DirectoryAutomation.Size.ISINTEGER THEN BEGIN
EVALUATE(temp, DirectoryAutomation.Size);
IF temp<>0 THEN
hasposDir := TRUE;
END;
6. Dezember 2007 13:14
10. Dezember 2007 12:59
10. Dezember 2007 14:52
10. Dezember 2007 15:07
// hk : Char
// FileSystemObject : Automation : 'Microsoft Scripting Runtime'.FileSystemObject
// TFile : Record : File
// isEmpty : Boolean
hk := 39;
isEmpty := TRUE;
aktPath := getAktPath(getAktPos());
IF NOT VARIABLEACTIVE(FileSystemObject) THEN CREATE(FileSystemObject);
IF FileSystemObject.FolderExists( aktPath ) THEN BEGIN
TFile.INIT;
TFile.SETRANGE( Path, aktPath );
TFile.SETFILTER( Name, STRSUBSTNO('<>.&<>%1..%1',hk) );
IF TFile.FIND('-') THEN
isEmpty := FALSE;
END;