個人代碼風格注釋(變量名中第一個小寫字母表表示變量類型)
i:為Integer型;
s:為String;
Function U
Dim sResult
Dim iTemp
iHexNum = Trim(a_iNum)
If iHexNum = “” Then
Exit Function
End If
sResult = “”
If (iHexNum <
sResult = sResult & iHexNum
ElseIf (iHexNum <
sResult = ChrB(&H
iHexNum = iHexNum &H
sResult = ChrB(&HC
ElseIf (iHexNum <
sResult = ChrB(&H
iHexNum = iHexNum &H
sResult = ChrB(&H
iHexNum = iHexNum &H
sResult = ChrB(&HE
End If
U
End Function
Function GB
Dim sGB
Dim iLen
sGB = Trim(a_sStr)
iLen = Len(sGB)
For i =
sTemp = Mid(sGB
iTemp = Asc(sTemp)
If (iTemp>
iUnicode = AscW(sTemp)
If iUnicode<
iUnicode = iUnicode +
End If
Else
iUnicode = iTemp
End If
sResult = sResult & U
Next
GB
End Function
調用方法
Response
From:http://tw.wingwit.com/Article/program/net/201311/14206.html