Jump to content
Sign in to follow this  

vb Format() to autoit?

Recommended Posts


how would i do this in autoit:

Dim s
s = Format("&H" & "AB")
msgbox s

output: 171

or, how to convert this function:

Public Function port(ByVal Porte As String) As Long
    Dim tmpMP As Long
    tmpMP = CLng(Format("&H" & ReverseHex(ChrtoHex(Porte))))
    If Len(Port) = 2 And tmpMP > 65536 Then tmpMP = tmpMP - 65536
    Porte = tmpMP
Porte = 0
End Function

reverseHex = _StringReverse()

chrtohex = chr(hex())?

my guess is vb's format function is autoit's stringformat?, still i don't know how to do it with stringfunction.

Edited by Cap0

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this