Sign in to follow this  
Followers 0
MStark

HexToString-problem

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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)



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
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)

Share this post


Link to post
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."

Share this post


Link to post
Share on other sites

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


[center]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.[/center]

Share this post


Link to post
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)

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  
Followers 0