Garrett19212 Posted December 22, 2005 Share Posted December 22, 2005 $Dim $s[13] Doesn't seem to be working right. Errors out here. For $i = 0 to 13 $s[$i] = "" Next Array Variable has incorrect number of subscripts or subscript dimension range exceeded. Link to comment Share on other sites More sharing options...
LxP Posted December 22, 2005 Share Posted December 22, 2005 (edited) A 13-element array has indexes 0 to 12:Local $D[13] For $I = 0 to 12 $D[$I] = '' NextEdit: Using UBound() will ensure that you never receive such an error:Local $D[13] For $I = 0 to UBound($D) - 1 $D[$I] = '' NextEdit: This shouldn't be necessary anyway as all variables appear to be initialised to an empty string (for the beta at least):Local $Array[1] MsgBox(0x40, 'IsString()', IsString($Array[0])) Edited December 22, 2005 by LxP Link to comment Share on other sites More sharing options...
Garrett19212 Posted December 22, 2005 Author Share Posted December 22, 2005 Thanks. Works. 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