BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Using FindFirst

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design
View previous topic :: View next topic  
Author Message
Mac Davis
Guest





PostPosted: Fri Dec 03, 2004 10:25 pm    Post subject: Using FindFirst Reply with 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 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





PostPosted: Fri Dec 03, 2004 10:58 pm    Post subject: Re: Using FindFirst Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OO design All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.