Jump to content

HexToString-problem


MStark
 Share

Recommended Posts

The example (from helpfile) of User Defined Function "_HexToString" don't running under AutoIt-version 3.1.1.100, under 3.1.1 is it o.k. !

OS: WinXP SP2 (german)

Thanks and best regards

Matthias :P

Works ok for me

OS: WinXP Pro SP2 (UK)


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

Please describe the exact error you are getting. I will be more than happy to test it further. I have meant to re-write the UDF's to make them shorter/faster. I havent had the time as of now.

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

Link to comment
Share on other sites

The exact error is:

Line 0 (File "C:\test.exe")

Local $strChar, $aryHex, $i, $iDec, $Char, $file, $strHex, $iOne, $iTwo

Local $strChar, $aryHex, $i, $iDec, $Char, $file, Error

Error: Can not redeclare a parameter inside a user function."

Link to comment
Share on other sites

  • Moderators

I have had this error, just take out the parameter variable...

Example:

Func Something($i, $iDec, $Char, $file, $strHex) ; <<< $parameters

Local $strChar, $aryHex, $i, $iDec, $Char, $file, $strHex, $iOne, $iTwo

^^ would throw an error because: $strChar, $aryHex, $i, $iDec, $Char, $file, $strHex you're trying to redeclare set parameters...

So you would set it up like:

Local $aryHex, $iOne, $iTwo ; leaving out the parameters

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Now did I do that in the UDF, or is that in your file?

JS

AutoIt Links

File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out.

ComputerGetInfo UDF's Updated! 11-23-2006

External Links

Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more)

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...