I am working on an application where I want to create tabpages with a listview on them in which I display the content of a section of either an INI file or a XML.. I am having some trouble figuring out the best way to do this.. So far I guess it's sort of like:

setup listview
setup tabpage
setup listview to display on tabpage..

I can however not figure out how to use 1 (string)variable (named Group) to setup a unique listview (lstGroup) and tabpage (tabGroup) Right now I pass the groupname to the code building the tabpage and listview three times as in : call buildtab(Group, Group, Group) ... There must be a way to use 1 unique name and convert that from a string to a listview to a tabpage right?

probably a simple solution, but I just seem to be missing it..

any help as always much appreciated..