johna007 Posted March 31, 2005 Share Posted March 31, 2005 My program after running for 3 mins OK then gives me a Error :- $check = StringLen ( $array[4] ) $check = StringLen ( ^ERROR Error: Array variable has incorrect number of subscripts or subscript dimension range exceeded. This is part of my program :- While 1 $All = ClipGet() $array = StringSplit($All, Chr(13)) $check = StringLen ( $array[4] ) ; ; My program ; WEnd Please help John Link to comment Share on other sites More sharing options...
Developers Jos Posted March 31, 2005 Developers Share Posted March 31, 2005 you need to test if the Stringsplit really returned an array with at least 5 entries... While 1 $All = ClipGet() $array = StringSplit($All, Chr(13)) If UBound($array) > 4 then $check = StringLen ( $array[4] ) Else ; $array[4] doesn't exist EndIf ; ; My program ; WEnd SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
johna007 Posted April 1, 2005 Author Share Posted April 1, 2005 I've found out the answer i have to slow part of the program down While 1 send("^c") Sleep(100) ; Slow it down $All = ClipGet() $array = StringSplit($All, Chr(13)) $check = StringLen ( $array[4] ) ; ; My program ; WEnd 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