请问,在f1中如何保存当前文件

liujiaqiang 2003-09-14 11:48:39
请问,在f1中如何保存当前文件
...全文
58 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
runsoft 2003-09-14
  • 打赏
  • 举报
回复
//---------------------------------------------
// Function : uf_file_saveas
// Describe : 另存文件为
//---------------------------------------------

String Ls_Report_Name,Ls_Report_FullName,Ls_TempDir
Integer Li_RetCode,Li_File

//打开保存文件对话框
li_RetCode = GetFileSaveName("保存",&
Ls_Report_FullName,Ls_Report_Name,"vts",&
"Formula One (*.vts),*.vts")

If Li_RetCode = 1 Then
If FileExists( Ls_Report_FullName) Then
li_RetCode = MessageBox("保存",&
"文件" + Ls_Report_Name + " 已经存在,覆盖当前文件?", &
Question!,YesNo!)
If Li_RetCode = 2 Then
// save nothing
Return 0
End If
End If

This.Object.Write(Ls_Report_FullName,F1FileFormulaOne6)
iw_master.title = Ls_Report_Name
This.Object.FileName = Ls_Report_Fullname
This.Object.Modified = False
Else
// no file name inputed
Return 0
End If

Return 1

1,075

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧