Condividi tramite


_ObjectCmp( ) API Library Routine

Compares the properties of two objects and returns 0 if their properties and property values are identical.

int _ObjectCmp(Value FAR *objct1, Value FAR *objct2)

Remarks

0 is returned if the objects have identical properties and property values. -1 is returned if an object has a property that the other object doesn't have, or if the objects have identical properties but the values of one or more properties differ.

If an error occurs (for example, if you omit one of the objects), the negative value of the corresponding Visual FoxPro error code is returned.

For more information on how to create an API library and integrate it with Visual FoxPro, see Accessing the Visual FoxPro API.

See Also

_GetObjectProperty( ) API Library Routine | _SetObjectProperty( ) API Library Routine | Accessing the Visual FoxPro API