[dcc32 Error] dxOI.pas(604): E2072 Number of elements (18) differs from declaration (22)
dxPropClassMap: array[TTypeKind] of TdxPropertyEditorClass = (
nil, TdxIntegerProperty, TdxCharProperty, TdxEnumProperty,
TdxFloatProperty, TdxStringProperty, TdxSetProperty, TdxClassProperty,
nil, TdxPropertyEditor, TdxStringProperty, TdxStringProperty,
TdxPropertyEditor, nil, nil, nil
{$IFDEF DELPHI4}, TdxInt64Property, nil{$ENDIF}
);
TTypeKind在D7里定义如下,共18个元素
type
TTypeKind = (tkUnknown, tkInteger, tkChar, tkEnumeration, tkFloat,
tkString, tkSet, tkClass, tkMethod, tkWChar, tkLString, tkWString,
tkVariant, tkArray, tkRecord, tkInterface, tkInt64, tkDynArray);
在XE4里定义是22个
type
TTypeKind = (tkUnknown, tkInteger, tkChar, tkEnumeration, tkFloat,
tkString, tkSet, tkClass, tkMethod, tkWChar, tkLString, tkWString,
tkVariant, tkArray, tkRecord, tkInterface, tkInt64, tkDynArray,
tkUString, tkClassRef, tkPointer, tkProcedure);
增加了4个,dxPropClassMap的元素个数与定义不符,修改一样,加几个nil或属性编译器就可以了