比如在类模块中有以下代码,总是编译通不过啊!Public Type Node
Count As Integer
Name As String
End Type
Public Function s(t As Node)End Function难道类模块的函数就不能以结构体我参数吗?
Count As Integer
Name As String
End Type
Public Function s(t As Node)End Function难道类模块的函数就不能以结构体我参数吗?
解决方案 »
- VB 水晶报表
- SQL查询语句怎能样定,在线等待!
- VB webbrowser 点击框架中图片
- 关于VSFLEXGRID控件的奇怪问题
- 如何在程序里设置ConnectionString?
- 我正在为此事发愁
- 一个VB简单的VB编译问题,很急,在线等,好了马上结帖
- Vb中treeview一次只能添加一个节点啊,怎样才能把我建立好的nodes集合一次添加到
- dbcontrols(泰山)在嗎?
- 淘气哈哈,大侠,再帮我一把。用VB与EXCEL结合出报表,用Selection想合并两个列,运行第一没问题,关闭EXCEL后,运行第二次怎么也过不去,我如何正确使用selection,代码在里面呀,救命呀。
- ADO、Excel之间的数据读取问题
- 散分,速接!
Count As Integer
Name As String
End Type
Public Function s(t)
dim a as node
let a=t
msgbox a.name
End Function
的代码编译通不过啊!
Count As Integer
Name As String
End TypePublic Sub s(t As Node)
MsgBox t.Name
End Sub
窗体中Private Sub Command1_Click()Dim x As Node
x.Count = 9
x.Name = "aa"
Call s(x)End Sub
MsgBox t.Name
End Sub或Public Function s(t As Node)
MsgBox t.Name
End Function
也可以传递啊...
Count As Integer
Name As String
End Type
类模块中
Friend Function s(t As Node)
End Function
http://book.hackbase.com/asppost10/web212464.htm
'class Node
public Count As Integer
public Name As String
如果是 .EXE 则不行.
如果是.DLL .OCX 则可以.