请问这样定义VB变量的格式正确吗?
定义四个单精度浮点型变量: Dim Math1, Math2, Math3, Math4 As Single
不正确,这样定义,只有Math4 被定义为Single型,其他都是Variant(待定类型),要定义4个单精度变量,可以写成以下形式 Dim Math1 As Single, Math2 As Single, Math3 As Single, Math4 As Single 或者分开定义。
vb.net里面是正确的,全被定义成single,vb6中不行,只有Math4 被定义为Single型,其他都是Variant,要写成以下形式 Dim Math1 As Single, Math2 As Single, Math3 As Single, Math4 As Single 看你用的什么vb版本了
可以这样定义
答:dim str as string str = text1.text 这样就把文本框中的内容赋值给了变量str详情>>
答:线性链表分好几种,分为单链,双链等,它们的存储顺序也不一样. 线性表是顺序存储的,占顺序的存储空间详情>>
问:电脑安装了VB6.0,为什么打开方式里面没有VB程序选项,进安装好的VB里去关联...
答:打开方式最下面还有一个《选择程序》,点开后查VB的安装目录的EXE,找到后直接打开,下次就会在打开方式里查到了详情>>