jono336 Posted November 4, 2009 Posted November 4, 2009 (edited) Hi i need help with a script i am making i get this error $Arg00 _&= CHR(DEC(STRINGMID($Arg00 ,$X,2))) $Arg00 _^ERROR error: Missing Separator Character after keyword any ideas? Thanks Edited November 4, 2009 by jono336
jono336 Posted November 4, 2009 Author Posted November 4, 2009 Hi i need help with a script i am making i get this error$Arg00 _&= CHR(DEC(STRINGMID($Arg00 ,$X,2)))$Arg00 _^ERROR error: Missing Separator Character after keywordany ideas?ThanksThanks but when i do that i get another error sayingNEXTError: "Next" statement with no matching statementmy code is Func Fn012B($Arg00 )LOCAL $Arg00 _FOR $X=1 TO STRINGLEN($Arg00 )STEP 2$Arg00 _&= CHR(DEC(STRINGMID($Arg00 ,$X,2)))NEXTRETURN $Arg00 _ENDFUNCor Func Fn012B($Arg00 )LOCAL $Arg00 _FOR $X=1 TO STRINGLEN($Arg00 )STEP 2$Arg00 = CHR(DEC(STRINGMID($Arg00 ,$X,2)))NEXTRETURN $Arg00 _ENDFUNC Thanks you if this makes me sound like a noob my mate who is teaching me how to use autoit is not here atm and i need this script asap thanks
Mison Posted November 4, 2009 Posted November 4, 2009 Func Fn012B($Arg00 )LOCAL $Arg00; delete this line, $Arg00 is already local FOR $X=1 TO STRINGLEN($Arg00 )STEP 2 $Arg00 &= CHR(DEC(STRINGMID($Arg00 ,$X,2))) NEXTRETURN $Arg00ENDFUNC Hi ;)
SyDr Posted November 4, 2009 Posted November 4, 2009 Hi i need help with a script i am making i get this error $Arg00 _&= CHR(DEC(STRINGMID($Arg00 ,$X,2))) $Arg00 _^ERROR error: Missing Separator Character after keyword any ideas? Thanks From AutoIt Help File: Although only one statement per line is allowed, a long statement can span multiple lines if an underscore " _" preceded by a blank is placed at the end of a "broken" line. String definition cannot be split in several lines, concatenation need to be used. MsgBox(4096,"", "This is a rather long line, so I " & _ "broke it with the underscore, _, character.")
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now