Jump to content

RazerM's uranium help.


capo
 Share

Recommended Posts

this thread im talking about: http://www.autoitscript.com/forum/index.php?showtopic=25690

i try to add new function to it:

if StringLeft($linecontent,5 ) = "joob(" Then
                Local $newstring, $new2
                $assign = StringSplit($linecontent,',',1)
                $newstring = StringReplace($assign[2],")","")
                $new2 = StringSplit($assign[1],"(",1)
                Assign($newstring,$new2)
                $variables[$i] = $newstring
            EndIf

and i enter this in the input box:

joob(2,$number)
print $number

and it says print $number

Syntax Error: Variable not declared

why??

btw i dont know if this is right place to post :S

Link to comment
Share on other sites

The error tells you exactly whats wrong... The variable hasn't been declared.

Please do a little learning and searching before you jump in.

Somewhere before the code you posted, place this:

$number = "declared"

Look up variables in the autoit help file, and you will find an explanation of what variables are and how to use them. Good luck!

Edited by JRowe
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...