im tryin to get all of the indexes from an array except for the first one (0) but when the second for loop runs, it increments in 2s? and goes from 1 to 3 so im gettin a subscript out of range errormibob, anyone know why?VB Code:
Dim strDescription As String, intTemp As Integer, intContains As Integer For Each Item In strFullError intContains = intContains + 1 Next intContains = intContains - 1 MsgBox intContains For intTemp = 0 To intContains Step 1 intTemp = intTemp + 1 MsgBox intTemp MsgBox strFullError(intTemp) strDescription = strDescription & " " & strFullError(intTemp) Next
cheers
ps, its in a function where strfullerror is declared as an arrayed string like strFullError() as String, im new to arraysplease bare with mee :P





please bare with mee :P
Reply With Quote