Hi, I'm looking to test if a key is unique in a treeview control before adding it. I've tried using error capture to iterate the key name but it doesn't seem to work past the creation of two unique keys, so I'm wondering if there is any inbuilt functionality I can use?
Here is the relevant bit:
...
StartAgain:
counter = counter + 1
sKey = "key" & counter
on error goto StartAgain
treeview.nodes.add sParentKey, tvwChild, sKey, sText
...
Here is the relevant bit:
...
StartAgain:
counter = counter + 1
sKey = "key" & counter
on error goto StartAgain
treeview.nodes.add sParentKey, tvwChild, sKey, sText
...