Hi guys, I have been stumped for a few days and have googled the heck out of my problem and have given up and need help.
I'm trying to populate a combobox by comparing two multidimensional arrays that have different subscript ranges.
My first array has all sizes in a table
ex: array1 [
{"InventorySizeId": 1, "InventorySizeName": "small"},
{"InventorySizeId": 2, "InventorySizeName": "medium"},
{"InventorySizeId": 3, "InventorySizeName": "large"}
]
My second array has only the sizes within a certain item
ex: array2 [
{"InventorySizeId": 1, "InventorySizeName": "medium"},
{"InventorySizeId": 2, "InventorySizeName": "large"}
]
I need help looping through both arrays, comparing, and displaying the items in array1 that dont match array2.
pseudocode:
for i=0 To Ubound(array1, 2)
for s=0 To Ubound(array2, 2)
if i <> s then
call function that creates a json object
exit for
end if
next
next
I think I'm really close, but I don't know. Any help would be appreciated. Thanks!