标题:程序调用自定义类怎么提示mytoolbar未定义?
取消只看楼主
lgsh001
Rank: 1
等 级:新手上路
帖 子:64
专家分:3
注 册:2014-8-26
结帖率:58.33%
已结贴  问题点数:20 回复次数:3 
程序调用自定义类怎么提示mytoolbar未定义?
SET DELETED ON
 SET EXCLUSIVE OFF
 SET EXACT ON
 SET ANSI ON
 SET CENTURY ON
 SET DATE YMD
 SET SAFETY OFF
 SET HELP OFF
 SET TALK OFF
 SET ESCAPE OFF
 SET STATUS OFF
 SET STATUS BAR OFF
 SET MULTILOCKS ON
 SET NULLDISPLAY TO ''
 SET OPTIMIZE ON
 PUBLIC GUSERNO , GUSERNM , GADMIN
 SET PATH TO Data
 GADMIN = .F.
 GUSERNO = ''
 GUSERNM = ' '
 USE data\hy\data\lk exclusive IN 0
 DELETE all
 pack
 USE IN lk
 ON SHUTDOWN quitsystem()  
 DO FORM form\dl.scx
 READ EVENTS     
 DO FORM form\zh.scx WITH 'll.mpr'  
 READ EVENTS  
 SET CLASS TO mytoolbar
 _screen.AddObject('opentoolbar','mytoolbar')
  READ EVENTS
 
搜索更多相关主题的帖子: PUBLIC 
2015-05-12 17:36
lgsh001
Rank: 1
等 级:新手上路
帖 子:64
专家分:3
注 册:2014-8-26
得分:0 
多谢版主们的厚爱!小生定要潜心学习。
2015-05-13 07:17
lgsh001
Rank: 1
等 级:新手上路
帖 子:64
专家分:3
注 册:2014-8-26
得分:0 
我修改了主程序,虽然调用了类,但类的标题栏总赋存着,请给予指教!
文档.rar (5.51 KB)

***********
CLEAR ALL
SET DELETED ON
 SET EXCLUSIVE OFF
 SET EXACT ON
 SET ANSI ON
 SET CENTURY ON
 SET DATE YMD
 SET SAFETY OFF
 SET HELP OFF
 SET TALK OFF
 SET ESCAPE OFF
 SET STATUS OFF
 SET STATUS BAR OFF
 SET MULTILOCKS ON
 SET NULLDISPLAY TO ''
 SET OPTIMIZE ON
 PUBLIC GUSERNO , GUSERNM , GADMIN
_SCREEN.BACKCOLOR=RGB(0,128,128)
_SCREEN.LEFT=-10000
_SCREEN.CONTROLBOX=.T.
_SCREEN.VISIBLE=.T.
_SCREEN.CLOSABLE=.T.
_SCREEN.MAXBUTTON=.T.
_SCREEN.MINBUTTON=.T.
_SCREEN.MOVABLE=.T.
DO FORM dl.SCX
READ EVENTS
PUBLIC ZBD AS OBJECT
DEACTIVATE WINDOW 'PROJECT MANAGER'
SET CLASSLIB TO MYTOOLBAR
_SCREEN.BACKCOLOR=RGB(0,128,128)
DO ll.mpr
DO FORM ZBD
_SCREEN.LEFT=0
_SCREEN.top=0
_SCREEN.CAPTION='统计管理系统' &&窗口标题
ZOOM WINDOW SCREEN MAX
@SROWS()-5,SCOLS()-52 SAY "作者:李更生  技术支持:QQ1442513151" FONT '宋体',11 STYLE 'T' COLOR R+/B
READ EVENTS
ON SHUTDOWN DO quitsystem
WITH _SCREEN
.LEFT=0
.TOP=0
.MOVABLE=.T.
ENDWITH









2015-05-13 18:01
lgsh001
Rank: 1
等 级:新手上路
帖 子:64
专家分:3
注 册:2014-8-26
得分:0 
已解决!OK
2015-05-14 04:02



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-445196-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.174082 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved