seandisanti Posted March 13, 2006 Share Posted March 13, 2006 ReDim $passwords[$numpasswords] = ""i think that's the line that's throwing smoke off, it looks a little odd to me too. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 13, 2006 Moderators Share Posted March 13, 2006 (edited) no to clear them only Dim $numpasswords = 10 Dim $passwords[$numpasswords] ; Status 1 $passwords[1]=chr(97) $passwords[2]=chr(96) $passwords[3]=chr(96) ; Status 2 MsgBox(0, '', $passwords[1] & @CRLF & $passwords[2] & @CRLF & $passwords[3]) ReDim $passwords[$numpasswords] = "" ;Dim $passwords[$numpasswords] MsgBox(0, '', $passwords[1] & @CRLF & $passwords[2] & @CRLF & $passwords[3]) yes... the second message box gets an error... thats because the re-dim worked like the posted requested 8)LOL... I don't think it's the msgbox... if they were cleared the msgbox would be empty... But This certainly does not look right: ReDim $passwords[$numpasswords]= " Edited March 13, 2006 by SmOke_N 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. Link to comment Share on other sites More sharing options...
Valuater Posted March 13, 2006 Share Posted March 13, 2006 (edited) if this is right Dim $numpasswords = 10 Dim $passwords[$numpasswords] why not this ReDim $passwords[$numpasswords] = "" 8) Edited March 13, 2006 by Valuater Link to comment Share on other sites More sharing options...
seandisanti Posted March 13, 2006 Share Posted March 13, 2006 if this is right Dim $numpasswords = 10 Dim $passwords[$numpasswords] why not this ReDim $passwords[$numpasswords] = "" 8)dim is a keyword that allows you reserve space in memory for a variable, and give it an initialization value. redim does not look for an initialization value... Link to comment Share on other sites More sharing options...
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