Jump to content

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...