I.T. Discussion Community!
-Collapse +Expand
Delphi
Search Delphi Group:

Advanced
-Collapse +Expand Delphi To/From
To/FromCODEGuides
-Collapse +Expand Delphi Store
PRESTWOODSTORE

Prestwood eMagazine

November Edition
Subscribe now! It's Free!
Enter your email:

   ► MB LobbyPascal and Delphi Coding BoardDelphi Object PASCAL Topic   Print This     

Findfirst File extensions oddity?

Findfirst File extensions oddity? in Delphi Object PASCAL topic (part of our Pascal and Delphi Coding group).

Quick Search: Findfirst   extensions   Findfirst File   Findfirst File extensions  
Don Simmonds
 (Inactive)
-- USA
Can anybody please explain why Findfirst, when searching for *.htm will also find .html etc. and what please is the workaround. Was this designed for dos only when there were only three letters?
The real problem is that many web sites include duplicate files one for each of the extensions. Passing the output of Findfirst to a Stringlist with duplicates trapped will not of course solve the problem.
Hopefully thanks.
Don Roll Eyes
 Posted 18 years ago (Thread Starter)
Comment Quote
About Don Simmonds -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #5629, 2 replies
Thread Started 3/25/2002 9:13:00 AM
View Counter=2253
Last Reply Posted 6/15/2017 4:13:01 AM)
Location=-- USA 
Joined=18 years ago   MB Posts=2  
NevilleRichards
 (Inactive)
UK
You could find the position of the dot, and truncate three characters later before you send to storage area.

p := pos('.',nm);
if p>0 then nm := copy(nm,1,i+3);

Neville
 Posted 18 years ago
Comment Quote
About NevilleRichards -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Old Account!
If this is your account, sign in to activate web presence data (sign in quarterly to keep active). Alternatively, you can subscribe to our monthly eMag with a valid email address.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #5631 (Level 1.1)  Reply to 5629
Thread Started 3/25/2002 11:29:00 AM
View Counter=2
Location=UK  
Joined=19 years ago   MB Posts=41  
Most Recent Post
Don Simmonds
 (Inactive)
-- USA
Thank you Neville, sounds good to me, it should solve all problems.
Regards and best wishes

Don
 Posted 18 years ago (Thread Starter)
Comment Quote
About Don Simmonds -Collapse +Expand
Visit Profile
Inactive member.
Member does not subscribe to this thread.
Email Not Verified!
Once email is verified, we will review and approve the account.
Web Presence Hidden.
Once above is taken care of, full Profile content will display including back links, about me, my message, custom Profile html, social networking links, message board signature, company profile, etc.

Post ID #5637 (Level 1.2)  Reply to 5629
Reply Posted 3/25/2002 9:56:00 PM
Location=-- USA 
Joined=18 years ago   MB Posts=2  

Revive Thread!

Add a comment to revive this old thread and make this archived thread more useful.

Write a Comment...
Full Editor
...
Sign in...

If you are a member, Sign In. Or, you can Create a Free account now.


Anonymous Post (text-only, no HTML):

Enter your name and security key.

Your Name:
Security key = P1302A1
Enter key:
Icon: A Post    Thread    Idea    Important!    Cool    Sad    No    Yes    Includes a Link...   
Thread #5629 Counter
2253
Since 4/2/2008

Follow PrestwoodBoards on: 


©1995-2020 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech