There was the thread from this message #
879301. I think the issue was with vartype when the type was vetted the data had to be checked for null. It failed for me in my particular application.
I switched from VARTYPE to TYPE because [either] I failed to vette for a NULL with VARTYPE or it failed of it's own accord. I don't typically test a selecteditem for it's data properties. Usually I check to see if a particular node.key exists in the treeview. We can pretty much bet the farm that a selected item is an onject (no?:).
I looked for a thread - could not locate - it was from one of us across the pond and it offered a comparison. If vartype() works for you great! If you check the thread of the above message ID - you will see some code VARTYPE vs TYPE, a discussion of where and how it failed and confirmation that VARTYPE did fail in its use for that particular app.
But what do I know - I just a gremmy and every line of code is a struggle:)
>
Sometimes VARTYPE fails with OCX . TYPE works reliably.>
>Really? Is this documented? If so, where?
>
>I was just curious because I have never had a problem using VARTYPE() to check to see if a node is selected and I was wondering what I am missing < s >.
Imagination is more important than knowledge