General information
Category:
ActiveX controls in VFP
Terry,
SNIP
>My efforts were with lisview (appologies for mixing ocx's). A .NULL. variable is not an object (where as: a node is!) - so that may explain the datatype errors.
I think you'll find that any data type that can contain a NULL also RETAINS its TYPE().
>
>I looked at my "episode" and found that this is how I got the data error.
>.SelectedItem = .NULL.
>?.SelectedItem.Text
Well I would expect this to fail, because even though .SelectedItem remains a type=object, it is now pointing to nowhere so it does NOT have a .Text property to refer to.
>
>I may have miswrote the data failure I experience with listview. After you try it that way - check it from this angle:
>.SelectedItem.Selected=.f.
>?.SelectedItem.Text
Here, again, I think it is 'just' a problem of weak typing (or whatever the academic terminology is). In VFP yoy can assign almost anything to almost anything else and there will be no problem UNLESS you then try to use that thing that you assigned an invalid value to.
In this case .SelectedItem 'accepts' the .F., but as soon as you try to use it...KA-POW!!
So in fact I don't think that assigning .F. to .SelectedItem is of ANY value whatsoever.
>
>>
>>Also .SelectedItem can certainly have a .NULL. value when the tree is first populated. I don't know exactly when this gets assigned but it could be as late as Tree.GotFocus()
>>
>Yes - I think that Onfocus (oops, GotFocus) is when it happens.
Well I think that the problem that originated this thread shows pretty conclusively that there is no SET 'time' when the focus is set.
cheers
>
>>Regards,
>>Viv
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only