>System.Collections.ArrayList ODropDownCondition = new System.Collections.ArrayList(); > >ODropDownCondition.Add(new string[2] {"No DBUsers","Something"}); >ODropDownCondition.Add(new string[2] {"No DBUsers2","Something"}); > >foreach (string[] s in ODropDownCondition) > { > oApp.AddJavascriptMessage(s[0]); > } >Ok, I see why I never had this problem before. In similar locations where I am using this technique to add something in a collection, I am doing something like this:
' Add the information for an extra option for a record ' expC1 Image ' expC2 Tooltip ' expC3 Javascript function ' Optional ' expC4 Url ' Optional ' expC5 Url parameter ' Optional Public Function AddExtraOptionRecord(ByVal tcImage As String, ByVal tcTooltip As String, _ Optional ByVal tcJavascriptFunction As String = "", _ Optional ByVal tcUrl As String = "", _ Optional ByVal tcUrlParameter As String = "") As Boolean Dim loExtraOptionRecord(5) As Object loExtraOptionRecord(1) = tcImage loExtraOptionRecord(2) = tcTooltip loExtraOptionRecord(3) = tcJavascriptFunction loExtraOptionRecord(4) = tcUrl loExtraOptionRecord(5) = tcUrlParameter oExtraOptionRecord.Add(loExtraOptionRecord) Return True End FunctionSo, everytime I have a need to add an item in that collection, I am calling this method. As everytime I call the method, loExtraOptionRecord() is initialized, I am not facing that situation here.