Jump to content

Help with my script


jono336
 Share

Recommended Posts

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

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