标题:256# * BytReceived(I) + BytReceived(I + 1)
取消只看楼主
chenjl335402
Rank: 1
等 级:新手上路
帖 子:15
专家分:5
注 册:2015-3-9
结帖率:83.33%
已结贴  问题点数:5 回复次数:1 
256# * BytReceived(I) + BytReceived(I + 1)
Dim strCharacter As String   '定义字符变量
 Dim BytReceived() As Byte    '定义接收数组
 Dim I As Integer             '定义临时变量
 BytReceived() = MSComm.Input  '将输入内容赋与字节数组
 .................

strCharacter = 256# * BytReceived(I) + BytReceived(I + 1)

 .................


请问各位大侠,上面最后一句代码是啥意思?
在VB代码中,数字后面加“#”号表示什么?
2015-05-23 22:48
chenjl335402
Rank: 1
等 级:新手上路
帖 子:15
专家分:5
注 册:2015-3-9
得分:0 
你好,谢谢你的回复!但以下整句代码表示什么意思呢?
strCharacter = 256# * BytReceived(I) + BytReceived(I + 1)
2015-05-24 21:57



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-445684-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.584349 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved