Sign in to follow this  
Followers 0
Sardith

Error

3 posts in this topic

Array variable has incorrect number of subscripts or subscript dimension range exceeded.:

MsgBox("", "", $Split[3], 10)

MsgBox("", "", ^ ERROR

What does this error mean? Is it possible to have to many dims? Or arrays in a single Func?


[font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]

Share this post


Link to post
Share on other sites



maybe..

$days = StringSplit("Sun,Mon,Tue,Wed,Thu,Fri,Sat", ",")
;$days[1] contains "Sun" ... $days[7] contains "Sat"


; no error here
for $x = 1 to $days[0]
    MsgBox(0,"day", $days[$x], 3)
Next

; this will error because there is no $days[8] 
for $x = 1 to $days[0] +1
    MsgBox(0,"day", $days[$x], 3)
Next

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Yep, thats what it was Valuater. Thanks

I forgot to Error check =)

Edited by Sardith

[font="Verdana"]Valik:Get it straight - I'm not here to say please, I'm here to help - if my help's not appreciated then lotsa luck, gentlemen.[/font]

Share this post


Link to post
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
Sign in to follow this  
Followers 0