【发布时间】:2012-06-13 21:20:54
【问题描述】:
我想用 c# 编写 VB6 应用程序的这一部分。 如何将 long 更改为 Hex 值?
Public Function longToHex(l As Long) As String
longToHex = Hex(l)
If Len(longToHex) < 4 Then longToHex = String(4 - Len(longToHex), "0") & longToHex
longToHex = Right(longToHex, 2) & Left(longToHex, 2)
End Function
【问题讨论】:
-
你看VB6文档了吗。例如。 Hex functionLeft functionString function
标签: c# vb6 hex long-integer