以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 结构体问题 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=131261) |
-- 作者:foxjerry -- 发布时间:2019/2/21 15:08:00 -- 结构体问题 在全局代码中设定如下: Public Structure NET_DVR_USER_LOGIN_INFO Dim bUseAsynLogin As integer Dim sDeviceAddress As String Dim wPort As Integer Dim sUserName As String Dim sPassword As String End Structure 执行代码,如下 Dim struLoginInfo As NET_DVR_USER_LOGIN_INFO struLoginInfo.bUseAsynLogin = 0 struLoginInfo.sDeviceAddress = "192.168.0.5" struLoginInfo.wPort = 8000 struLoginInfo.sUserName = "User" struLoginInfo.sPassword = "123" msgbox(struloginInfo.Tostring) 出错结果:“UserCode+NET_DVR_USER_LOGIN_INFO” 请教老师,是什么问题?
|
-- 作者:有点蓝 -- 发布时间:2019/2/21 15:33:00 -- msgbox(struloginInfo.sDeviceAddress ) |