网络开发 调用API函数 报表打印 常用技术 经验汇总 控件使用 软件工程 数据处理
您的位置:首页 >> vfp教程 >> 网上文摘 >> 常用技术 >> 正文

如何避免多个例程的运行
出处:网络

将以下代码放在主程序开始处:
cCaption="程序名称 - 红虎工作室"
Declare integer FindWindow in win32api string cClass,String cCaption
if FindWindow(0,cCaption)#0
_screen.caption=cCaption
=messagebox("此程序已经运行,请查看任务栏!",16,"系统资源省着点用哦! ^_^ ")
return .f.
endif
_screen.caption=cCaption

[返回]

     

首页 | 设为首页 | 加入收藏 | 关于本站 | 友情链接 | 版权声明

     
 
Copyright© www.bianceng.cn Powered by 编程入门网 All Rights Reserved
吉ICP备06005558号