Professor
asked on
searching for *.lang
I want to look for any files with the extension .lang in a specified directory and and display the filenames without the extensions in a combo-box.
Can anyone plz give me some advice on how to do this ?
Thx in advance
Can anyone plz give me some advice on how to do this ?
Thx in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You will have to cut the extesnions of the filename when adding to the FileList, I forgot to do that.
ASKER
I'll try ... thx
To cut the extension off:
var s : string;
s := ExtractFileName(aSearchRec .Name);
s := Copy(s, 1, Length(s) - Length(ExtractFileExt(s));
Geoff M.
var s : string;
s := ExtractFileName(aSearchRec
s := Copy(s, 1, Length(s) - Length(ExtractFileExt(s));
Geoff M.