Notifications
Clear all

[Closed] Multibox Array to string error

Hi,

Im struggling a bit with populating a multibox from a array.

Following code will get a array like this #(“c:\img1.jpg”, “c:\img34.jpg”, “d:\dog.jpg”) but when trying to populate the listbox it complains on Unable to convert: #(“c:\img1.jpg”, “c:\img34.jpg”, “d:\dog.jpg”) to type: String

Same thing when Im tring to store the content in a inifile it say
Unable to convert: #(“c:\img1.jpg”, “c:\img34.jpg”, “d:\dog.jpg”) to type: String

			on getImages_btn pressed do
			(
				imgFilesArray = #()
				
				for item in imgDirectory.items do appendifunique imgFilesArray (getimgFiles_fn item)  
				imgFiles_mb.items = imgFilesArray
			)

If I instert the array into the .items line like this then it works
on getImages_btn pressed do
(
imgFiles_mb.items = #(“c:\img1.jpg”, “c:\img34.jpg”, “d:\dog.jpg”)
)