General information
Category:
Coding, syntax & commands
>>if vartype(thisform.command1) == "O"
>>** object exists
>endif
>
>I thought so too, until yesterday I ran some code that looked like this:
>
>IF VARTYPE(Thisform) = T_OBJECT AND Thisform.lSomething
>
>VFP gave me a Thisform is not an object error. Supposedly VFP doesn't evaluate
Curious.. did you suspend at this line and put...
vartype(thisform)
Into the watch window to see what it evaluated to?
BOb
PS: Asking cause I use the above extensivly, and so far no problems. But I usually use excataly equal ( == )
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