Find the Parent Folder of the Listbox item

I am creating a hierarchal listbox and I want to put the name of the parent folder into the celltag of the child listbox items (so I know which folder I am in).

I can’t figure out how to reference the parent folder when adding the child.

in ExpandRow, you are passed the parent row number in the Row as Integer parameter.

Thanks. Do you recommend keeping a reference in the celltag or just climb up the listbox to find the folder?

Which will change if you expand a folder above the parent of the current row. I would climb up the listbox using the RowIsFolder function to find the parent.

I climb the listbox.

Awesome. Thanks to all.