The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Declaration:function EnsureDefaultFileExt (FName, Ext: string): string;

The function EnsureDefaultFileExt returns a filename which always contains a file extension. If FName does not have a file extension, the extension Ext is added, otherwise FName is returned.

Hint: In order to force a particular file extension, you should use the function ChangeFileExt of the Delphi sysutils library.

Last Update: 2016-Oct-02