2,722
社区成员
发帖
与我相关
我的任务
分享
Init 事件代码:
Thisform.AddProperty('hFile', 0)
Thisform.hFile = Fopen('\\共享将机器名\共享文件夹\aaa.txt', 2)
If Thisform.hFile == -1
Messagebox('该运行窗口已被其他用户打开使用,不能重复打开。', 16, Thisform.Caption)
Return .f.
Endif
Destroy 事件代码:
If Thisform.hFile > 0
Fclose(Thisform.hFile)
Endif