SaveDialog1.Filter := 'SML files (*.SML)|*.SML';
解决方案 »
- 添加(update)一条数据时,数据库的低层操作是如何进行的?
- 怎样用静态数组做函数参数呢?
- 听说DELPHI各个版本之间的兼容性很差,到底差到什么程度啊?
- 一个简单的提问:
- 请问怎样在IIS中部署用delphi开发的soap server(ISAPI)服务
- 为什么700*1.2会等于840.000000003呀
- 这么晚了,还在加班,好兄弟们,帮我一把,在fastreport里,怎么预览窗口还是英文?
- 各位网友,VCL中知不知道如何使n个窗体使用同一窗口过程WndProc?
- 怎样使用文件型数据库?
- 怎样将人民币小写转换为中文大写汉字?
- ~~~存储过程中函数输入输出?????
- 用TNMSMTP控件,如何设置邮件 要性的高低?(内空)
SaveDialog1.DefaultExt:='SML';
不是我试过!
Begin
ChangeFileExt(SaveDialog1.FileName,'.sml');
FileName:=SaveDialog1.FileName;
...
end;
SaveDialog1.DefaultExt:='SML';
我可加分.詳細點.---------------------------------------------
Specifies a default file extension.property DefaultExt: string;DescriptionDefaultExt specifies a file extension that is appended automatically to the selected file name, unless the selected file name already includes a registered extension. If the user selects a file name with an extension that is unregistered, DefaultExt is appended to the unregistered extension.Extensions longer than three characters are not supported. Do not include the period (.) that divides the file name and its extension.--------------------------------
This code displays a Save Picture dialog box with the TBitmap default extension that is added automatically to files that are given no extension:SavePictureDialog1.DefaultExt := GraphicExtension(TBitmap);SavePictureDialog1.Filter := GraphicFilter(TBitmap);
if SavePictureDialog1.Execute then
{save the graphic }