Jump to content

Why I can't call a function more than 1 time?


Recommended Posts

  • Moderators

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

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

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