Correct Syntax for ListCompact? [Self-Solved]

Anyone know this? The documentation for this function is quite confusing. I want to ListCombine 2 lists but also ListCompact them. I tried:

MyCombinedList = ListCompact(list1, list2)
MyCombinedList = ListCompact(list1 + list2)
MyCombinedList = ListCompact(list1 list2)

...all to no avail. Maybe I have to do:

MyCombinedList = ListCombine(list1, list2)
MyCombinedList = ListCompact(MyCombinedList)

???


Ok, after searching the forums like I should have done in the first place, I found the answer:

MyCombinedList = ListCompact(ListCombine(list1, list2))

Duh!


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums