搜索: 标题内容作者  
  首页源码及开源VB.NET源代码
背景:
阅读新闻

源码下载:二进制字符串转为长整型

[日期:2009-05-30]   来源:互联网整理  作者:www.wewill.cn   [字体: ]
    新闻简介:
        关 键 词:  
源码下载:二进制字符串转为长整型源码下载
Function Bin2Long(b as string) as Long
    Dim o as Long, i as Integer
    o = 0
    For i = len(b) To 1 step -1
        If mid(b, i, 1) = "1" Then
            o = o + 2 ^ (len(b) - i)
        End If
    Next i
End Function

If you believe an article violates your rights or the rights of others, please contact us.

收藏 推荐 打印 | 录入:admin | 阅读:
相关新闻      
友情链接
赞助商广告
热门评论