Solved

Allowing only specific suffixes for an app

Posted on 1998-03-09
2
147 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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Working this component WebCopy with proxy, help 3 103
Convert GUI app into console app for Win32 Env 5 125
Delphi, TImage, Png 2 32
Browsing a TTreeView in Delphi 5 32
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 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