John,
It depends on which version of VFP you are using. IN VFP 6.0 you can...
IF Thisform.text1 = loObjectRef
In VFP 5.0 or earlier you need to use the CompObj() function whihc isn;t exactly what you are asking foir. CompObj comapres two objects to see if they have the same set of properties, methods and if the values of the properties are the same. It is possible to have CompObj tell you two objects are the same when they aren't.