Solved

Allowing only specific suffixes for an app

Posted on 1998-03-09
2
150 Views
Last Modified: 2012-05-05
Hi
      I am writing a graphical editor for LaTeX documents. Therefore I want my app to only be able to open files with a '.tex' suffix. Is there an easy way to do this?
      Thanks, Nik.
0
Comment
Question by:NikWhit
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
wtamviset earned 10 total points
ID: 1360295
In Open file Method
Procedure OpenFile(FileName :String);
Var Ext :String;
Begin
     Ext := UpperCase(ExtractFileExt(FileName));
    If  Ext =  '.TEX'  then
   Begin
        // Process Open File Here
   End
   Else
     ShowMessage('Error: Can't open TEX file only');
End;
0
 
LVL 1

Author Comment

by:NikWhit
ID: 1360296
cheers, just what i needed!
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses
Course of the Month3 days, 13 hours left to enroll

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question