Detect folder in listbox

I know I could use a CellTag/RowTag but what is the best way to detect wether a specific cell in a listbox is a folder.

The best way as far as I can tell is:

listbox.InsertFolder(12, "folder")
listbox.RowTag(12) = "folder"

if listbox.RowTag(12) = "folder" then
//row 12 is a folder
end if

Thanks

That’s the way.

Cool thanks.