Hi,
I have the following VB.net code and I want to be able to use it in B4A.
VB.net Code:
I have done the following but not sure if it's correct..
B4A Code:
Have I converted it correctly ?
I have the following VB.net code and I want to be able to use it in B4A.
VB.net Code:
B4X:
Private Function Byte2Hex(ByRef b As Byte) As String
Dim strTemp As String
strTemp = Trim(Hex(b))
While Len(strTemp) < 2
strTemp = "0" & strTemp
End While
Byte2Hex = strTemp
End Function
I have done the following but not sure if it's correct..
B4A Code:
B4X:
Sub Byte2Hex(b As Byte) As String
Dim strTemp As String
strTemp = b
While strTemp.Length < 2
strTemp = "0" & strTemp
End While
Byte2Hex = strTemp
End Sub
Have I converted it correctly ?