Hi Ed,
ISNULL() Returns .F.! Vartype() would have returned 'X' otherwise. All the properties of Text2 show NULL in the locals window and (Expression could not be evaluated) in the watch window.
>>Here's something I think is weird behaviour, can anyone explain this to me.
>>Create a form in the form designer with a container on that. Put two textboxes in that container. In the init of Text2 put: Return .F. When this form is run: Vartype(THISFORM.Container1.Text2) will return "U" as expected.
>>Now put an instance of the following class on the form. In my opinion it should result in the same, but it doesn't. Vartype(THISFORM.TestBox1.Text2) result in "O", Why???
>>
>
>It started to create an Object, so VARTYPE() became "O"; it did not instantiate so it's content became NULL. I'd bet that ISNULL(thisform.TextBox1.Text2) returned .T., too.
Previous
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