Sign in to follow this  
Followers 0
jono336

Help with my script

5 posts in this topic

#1 ·  Posted (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 by jono336

Share this post


Link to post
Share on other sites



Change $Arg00 _& to $Arg00

Share this post


Link to post
Share on other sites

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

Thanks but when i do that i get another error saying

NEXT

Error: "Next" statement with no matching statement

my code is

Func Fn012B($Arg00 )

LOCAL $Arg00 _

FOR $X=1 TO STRINGLEN($Arg00 )STEP 2

$Arg00 _&= CHR(DEC(STRINGMID($Arg00 ,$X,2)))

NEXT

RETURN $Arg00 _

ENDFUNC

or

Func Fn012B($Arg00 )

LOCAL $Arg00 _

FOR $X=1 TO STRINGLEN($Arg00 )STEP 2

$Arg00 = CHR(DEC(STRINGMID($Arg00 ,$X,2)))

NEXT

RETURN $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

Share this post


Link to post
Share on other sites

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

NEXT

RETURN $Arg00

ENDFUNC


Hi ;)

Share this post


Link to post
Share on other sites

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

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