06 2004 档案

摘要:从文件中读取到一个字符串:str="test" & chr$(192)我想得到最后一个字符的ASCII值,也就是192,该怎么样才能获得呢?我用asc(right(str,1))取得的却是0,比较郁闷.如果最后一个字符小于128,却可以用asc(right(str,1))取得. 阅读全文
posted @ 2004-06-10 13:21 Popcorn 阅读(4087) 评论(4) 推荐(0)
摘要:Public Function BinaryToDecimal(BinaryValue As String) As Long' Returns the decimal equivalent of a binary number.Dim idx As IntegerDim tmp As StringD... 阅读全文
posted @ 2004-06-09 22:38 Popcorn 阅读(4931) 评论(8) 推荐(0)
摘要:Public Function DecimalToBinary(DecimalValue As Long, MinimumDigits As Integer)As String' Returns a string containing the binary' representation of a ... 阅读全文
posted @ 2004-06-09 22:37 Popcorn 阅读(4753) 评论(7) 推荐(0)