VB自定义数据类型 type mytype a as string b as integer ... ... end type 这样定义的类型可以在整个工程中使用吗?还有,这个定义放在哪里? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public type mytype a as string b as integer ... ... end type 放在模块中就行了 在标准模块中需如此定义:Option ExplicitPublic Type mytype a As String b As IntegerEnd TypePublic ss As mytype然后可在整个工程使用。 标准模块type mytypea as stringb as integerc as longend type窗体dim mydata as mytypemydata.a="hello,i love you!"mydata.b=350mydata.c=34567 Public Type mytype a As String b As Integer . . . .End Type或者定义为类模块 如何可以把软件中的flash弄出来呢? 各位帮我看看我的代码问题出在哪儿啊? MSFlexgrid显示查询数据动态在每条记录后面加合计数和平均数,急急! 数组如何实现sql的distinct功能 如何把下面的代码改为可以批量提取数据呢?? 定义的API函数找不到DLL文件 监控上网记录(vb) 如何通过ADO,将sqlserver数据库某一字段下的值赋给Combobox控件(在线等) 最后一次长角,散分! 又是DATAGRID 控件数组问题,,,在线等 急!!!! 用prtfg控件打印DataGrid里的数据
a as string
b as integer
...
...
end type
放在模块中就行了
Option Explicit
Public Type mytype
a As String
b As Integer
End TypePublic ss As mytype
然后可在整个工程使用。
type mytype
a as string
b as integer
c as long
end type
窗体
dim mydata as mytype
mydata.a="hello,i love you!"
mydata.b=350
mydata.c=34567
a As String
b As Integer
. .
. .
End Type或者定义为类模块