 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Mac Davis Guest
|
Posted: Fri Dec 03, 2004 10:25 pm Post subject: Using FindFirst |
|
|
Pardon me for posting to this group but
both - borland.public.delphi.language.objectpascal
and - borland.public.delphi.nativeapi seem to have died.
This group seemed like my best bet.
Using Findfirst -
Can anyone explain to me why
Z:ReadyToFileAsleep At The Wheel Big Ball's In Cowtown.mp3 --- works
properly
while
Z:ToProcess_CountryBehind Closed Doors-Charlie Rich.mp3 --- fails ?
Here's the code
var
sr : TSearchrec;
iTemp : integer;
iResult : integer;
begin
//ShowMessage (path);
iResult := Findfirst (path,faAnyfile, sr);
if iResult = 0
then begin
iTemp := sr.Size;
result := PadNum (iTemp,7);
FindClose (sr);
exit
end;
FindCLose (sr);
result := 'ERR-' + inttostr (iResult);
end;
The only think I see is that the second path goes two foldrs deep. It
returns a cod of 2 but I can't find out what that is.
Thanks,
Mac
--
-dmd-
If the obvious weren't so obscure, I'd be less confused.
|
|
| Back to top |
|
 |
Joanna Carter (TeamB) Guest
|
Posted: Fri Dec 03, 2004 10:58 pm Post subject: Re: Using FindFirst |
|
|
"Mac Davis" <newsgroups (AT) blindsided (DOT) org> a écrit dans le message de news:
41b0e7d3$1 (AT) newsgroups (DOT) borland.com...
| Quote: | Pardon me for posting to this group but
both - borland.public.delphi.language.objectpascal
and - borland.public.delphi.nativeapi seem to have died.
|
This group is for the discussion of OO design issues.
You need to trefresh your newsreader as these groups are now renamed.
Your best group for this topic is borland.delphi.rtl.win32
Please repost there
Joanna
--
Joanna Carter (TeamB)
Consultant Software Engineer
TeamBUG support for UK-BUG
TeamMM support for ModelMaker
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|