Problem making buttons from array of array

I’m having some trouble with creating buttons from an array again. This time I’m trying to access the first element of every item in the inventory list. I keep getting multiple errors every way I try it. After eliminating parts to determine the issue it appeared to be [item] in this code below in most cases.

    for (var item in ItemList) { 
	if (GUILayout.Button(ItemList[item][0], GUILayout.Height(wh2 * 0.11))) {
 	}
    }  

I also tried this.

    for (var item in ItemList) { 
	if (GUILayout.Button(ItemList[item[0]], GUILayout.Height(wh2 * 0.11))) {
 	}
    }  

I did try declaring item as an array but it didn’t work. I also tried using the other way of creating buttons from an array but that didn’t work either. I tried both of these using the other way. In case you don’t know what I’m talking about this is what it looks like.

    for (var item : int = 0; item < ItemList.Length; item++) {
	if (GUILayout.Button(ItemList[item][0], GUILayout.Height(wh2 * 0.11))) {
 	}
    }  

Finally I also tried declaring the array two different ways.

static var ItemList : Array[];
static var ItemList = new Array();

Each way seems to be giving me at least one unique error. I believe I’m going in the right direction by declaring the array the second way.

I gave it another shot and this appeared to have fixed it.

    static var ItemList = new Array();
    
    for (var items : Array in Menu.ItemList) { 
	if (GUILayout.Button(items[0], GUILayout.Height(wh2 * 0.11))) {
 	}
    }