![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Как реализовать проверку расширения файлов? [D3, Win95/98]
inko © (2002-04-09 15:37:00)Как реализовать проверку расширения файлов?
Например, нужно проверить *.ocx; *.dll; *.tlb; *.acm; *.ax ли это файлы.
Андрей Сенченко (2002-04-09 16:55:00) [1]В этом случае Вам полностью подходит ответ А.Фролова
inko (2002-04-09 16:34:00) [2]Это я и имел ввиду.
Андрей Сенченко (2002-04-09 16:26:00) [3]В Edit1 не может находиться файла. Максимум, что там может быть - это строка, в которой описан путь к файлу и его и имя.
AFROLOV (2002-04-09 15:49:00) [4]ExtractFileExt
Returns the extension portions of a file name.
Unit
SysUtils
Category
file name utilities
function ExtractFileExt(const FileName: string): string;
Description
Use ExtractFileExt to obtain the extension from a file name. For example, the following code returns the extension of the file name specified by a variable named MyFileName:
MyFilesExtension := ExtractFileExt(MyFileName);
The resulting string includes the period character that separates the name and extension parts. This string is empty if the given file name has no extension.
Note: This function works for multi-byte character systems (MBCS).
inko (2002-04-09 15:49:00) [5]Нужна функция проверки расширения файла, который находится в Edit1.
Anatoly Podgoretsky (2002-04-09 15:45:00) [6]С помощью IF
Song (2002-04-09 15:40:00) [7]А русским языком?