Share via


This array element has been defined as an object and cannot be redefined in the class definition (Error 1780)

Once you have defined an array element as an object member in a class definition, it cannot be redefined.

For example, the following code would cause this error:

DEFINE CLASS test AS form
   DIME a[1]
   ADD OBJECT a[1] AS commandbutton
   a[1] = 10
ENDDEFINE