Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/delphi/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Delphi 如何在ReObject中注册索引属性?_Delphi_Pascalscript_Remobjects - Fatal编程技术网

Delphi 如何在ReObject中注册索引属性?

Delphi 如何在ReObject中注册索引属性?,delphi,pascalscript,remobjects,Delphi,Pascalscript,Remobjects,我想注册TStrings类的属性字符串。当我注册一个简单属性时,我会写: ACompiler.FindClass(ClassName).RegisterProperty(PropertyName,PropertyTypeName, PSPropType); 在OnCompImport事件中 及 在OnExecImport事件中。 但是我没有找到任何RegisterIndexedProperty和RegisterIndexedPropertyHelper方法。需要写入:属性类型参数中的属性类型、

我想注册TStrings类的属性字符串。当我注册一个简单属性时,我会写:

ACompiler.FindClass(ClassName).RegisterProperty(PropertyName,PropertyTypeName, PSPropType);
在OnCompImport事件中

在OnExecImport事件中。
但是我没有找到任何RegisterIndexedProperty和RegisterIndexedPropertyHelper方法。

需要写入:属性类型参数中的属性类型、索引类型1、索引类型2等。例如:

    ACompiler.FindClass('TStringList').RegisterProperty('Strings',' String Integer',iptRW);
procedure GetStringsMethod(Self: TObject; var AValue: string; AIndex: Integer);

procedure SetStringsMethod(Self: TObject; const AValue: string; AIndex: Integer);
在实现方法中,属性类型的值必须放在第一位。例如:

    ACompiler.FindClass('TStringList').RegisterProperty('Strings',' String Integer',iptRW);
procedure GetStringsMethod(Self: TObject; var AValue: string; AIndex: Integer);

procedure SetStringsMethod(Self: TObject; const AValue: string; AIndex: Integer);

需要写入:属性类型参数中的属性类型、索引类型1、索引类型2等。例如:

    ACompiler.FindClass('TStringList').RegisterProperty('Strings',' String Integer',iptRW);
procedure GetStringsMethod(Self: TObject; var AValue: string; AIndex: Integer);

procedure SetStringsMethod(Self: TObject; const AValue: string; AIndex: Integer);
在实现方法中,属性类型的值必须放在第一位。例如:

    ACompiler.FindClass('TStringList').RegisterProperty('Strings',' String Integer',iptRW);
procedure GetStringsMethod(Self: TObject; var AValue: string; AIndex: Integer);

procedure SetStringsMethod(Self: TObject; const AValue: string; AIndex: Integer);

我对RemObjects一无所知,但是
RegisterProperty()
不会处理任何类型的属性,不管它是否被索引?我对RemObjects一无所知,但是
RegisterProperty()
不会处理任何类型的属性,不管它是否被索引?