在模块module1中有一个函数:
public sub a(p as string)
msgbox pend sub在窗体form1中有个按钮
Private Sub Command1_Click()
CallByName Module1, "a", VbMethod,"fff"
End Sub调用会报错,请问怎么解决?
public sub a(p as string)
msgbox pend sub在窗体form1中有个按钮
Private Sub Command1_Click()
CallByName Module1, "a", VbMethod,"fff"
End Sub调用会报错,请问怎么解决?
解决方案 »
- VB抽奖小程序
- 请教个遍历窗口控件的问题
- 请问VBScript的类支持嵌套和继承吗?
- win2000sp4下ocx注册失败
- 请问为什么SST控件不能改变颜色
- 请问在VB的MDI窗体下,可以通过commondialog控件来调入一个from1.frm的文件吗?
- 水晶报表里有个sql 公式,不知道怎么用的
- 给那么多分,怎么没有人回答?
- how to make the width of a statusbar = form width and automatic resize?
- VB 画lg坐标系,两个纵轴
- API有打印文本文件的方法吗?,直接用Printer的话,好像是一行行的,太慢了
- 如何取得光标位置?
call a("fff")
End Sub
里面写个方法.
Public Sub a()
MsgBox "dddddddddddd"End Sub然后再在FORM1里写
Option Explicit
Dim gC As New Class1
Private Sub Command1_Click()
CallByName gC, "a", VbMethod
End Sub