ScriptUSER Posted April 24, 2007 Posted April 24, 2007 Here is the part of the script where Scite states the reason ... at $vart = DriveGetSerial($avArray[$i] & "\" ) " Array variable has incorrect number of subscripts or subscript dimension range exceeded.: " My mistake ? Thanks $rows = UBound($avArray) MsgBox(4096,"", "Found " & $rows) For $i = 1 to $rows $DISK1 = "00000000" $vart = DriveGetSerial($avArray[$i] & "\" ) If $vart = $DISK1 Then MsgBox(4096,"", "SERIaL " & $vart & " RED ") endif next
xcal Posted April 24, 2007 Posted April 24, 2007 UBound($avArray) - 1 How To Ask Questions The Smart Way
SpookMeister Posted April 24, 2007 Posted April 24, 2007 Or maybe $rows = $avArray[0] As it is most likely that that element will already be holding the value you are looking for here. Check the help documentation on the function you are using to create $avArray [u]Helpful tips:[/u]If you want better answers to your questions, take the time to reproduce your issue in a small "stand alone" example script whenever possible. Also, make sure you tell us 1) what you tried, 2) what you expected to happen, and 3) what happened instead.[u]Useful links:[/u]BrettF's update to LxP's "How to AutoIt" pdfValuater's Autoit 1-2-3 Download page for the latest versions of Autoit and SciTE[quote]<glyph> For example - if you came in here asking "how do I use a jackhammer" we might ask "why do you need to use a jackhammer"<glyph> If the answer to the latter question is "to knock my grandmother's head off to let out the evil spirits that gave her cancer", then maybe the problem is actually unrelated to jackhammers[/quote]
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