[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 153
  • Last Modified:

Allowing only specific suffixes for an app

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
NikWhit
Asked:
NikWhit
1 Solution
 
wtamvisetCommented:
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
 
NikWhitAuthor Commented:
cheers, just what i needed!
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now