7,763
社区成员
发帖
与我相关
我的任务
分享
dim MenuObject
MenuObject = empty
'''------------------------------------------------------
Sub ShowError (sMessage)
world.ColourNote "white", "red", sMessage
end sub
'''------------------------------------------------------
'''------------------------------------------------------
Sub Oninstall()
dim X, Y, width
if isempty (MenuObject) then
set MenuObject = nothing
end if
if MenuObject is nothing then
On Error Resume Next
set MenuObject = createobject ("my_menu.Bar")
if Err.Number <> 0 Then
ShowError Err.Description
ShowError "Cannot execute bar display program"
ShowError "Check it is installed."
Exit Sub
end if
On Error GoTo 0
MenuObject.SetTitle world, world.WorldName
''----vbscript调用到这里就出错,提示是“类型不匹配”不清楚咋回事?无论怎么处理(注册,安装,重新在该机器编译均不成。但是在本地机器完全正常。
end if
end sub
bar.bas
Option Explicit
Sub SetTitle(callingworld As World, title As String)
Quickmenu.Caption = title
Set theworld = callingworld
End Sub
Private Sub Class_Terminate()
End
End Sub