发表于:2006-06-07 11:20:00
3楼
这是我写的网络通讯的部分代码,原理是一样的,希望能对你有所启发!
组合
' i = 0
' If GL1.Index0 Then i = i + 1
' If GL1.Index1 Then i = i + 2
' If GL1.Index2 Then i = i + 4
' If GL1.Index0M Then i = i + 8
' If GL1.Index1M Then i = i + 16
' If GL1.Index2M Then i = i + 32
' If GL1.IndexZD Then i = i + 64
' If GL1.SQ_Closed0 Then i = i + 128
' If GL1.SQ_Closed1 Then i = i + 256
分离
' GL1.Index0 = i And 1
' GL1.Index1 = i And 2
' GL1.Index2 = i And 4
' GL1.Index0M = i And 8
' GL1.Index1M = i And 16
' GL1.Index2M = i And 32
' GL1.IndexZD = i And 64
' GL1.SQ_Closed0 = i And 128
' GL1.SQ_Closed1 = i And 256