# ValidateObject

Validates an object.

### Synopsis

`int32 ValidateObject( COBObject *cob )`

### Description

This function is part of the Juggler object-oriented toolbox that supports the various classes of Juggler objects. This function returns an error code if the object is not a valid object that is, if the COBObject data structure element dedicated to object validity doesn't confirm validity.

### Arguments

cob
  A pointer to the COBObject data structure for the object.

### Return Value

This function returns 0 if the object is valid or an error code (a negative value) if the object isn't valid.

### Implementation

Library call implemented in music.lib V20.

### Associated Files

cobj.h, music.lib

### See Also

``CreateObject`(), DefineClass(), DestroyObject()`