Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview.SelectedItem
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00885264
Message ID:
00886153
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform