author=hgcad link=topic=152.msg676#msg676 date=1202423775 wrote:
Seem to be an inconsistancy, please check and confirm.
In the examples you show, (mapcar 'strcat ...) is not producing a list of strings, so it will only be adding a single item to the list. There was a problem where a list of two or three integers for the image list could result in an argument exception because it was passed as a point instead of a list, but I've fixed that for Alpha 4.
I should also mention that the argument processing code will accept either a list of integers or strings, or a series of integers or strings. That is, (dcl_grid_setitemdropdownlist "Item1" "Item2" "Item 3" "Item 4" 1 2 3 4) is interpreted the same way as (dcl_grid_setitemdropdownlist '("Item1" "Item2" "Item3" "Item4") '(1 2 3 4)).
I suspect that you encountered the problem with three integers being passed as a point, and your second example solved the problem because the integers were no longer in a separate list.
If this is not the case, please post an example that fails.