jonnyfive
asked on
COM & Arrays
Hi everyone...
I used the Type-Library editor to create simple record, which includes two widestrings. I want to use this record in an property which has an array. Normal Delphi code would look like this:
property Attachments[Nr : Integer] : RAttachment read GetAttachments write SetAttachments;
How can I do this?
Regards, Jonny...
I used the Type-Library editor to create simple record, which includes two widestrings. I want to use this record in an property which has an array. Normal Delphi code would look like this:
property Attachments[Nr : Integer] : RAttachment read GetAttachments write SetAttachments;
How can I do this?
Regards, Jonny...
Shouldn't that read "I have no clue..." ? (not my native language, sorry :-)).
Ciao, Mike
Ciao, Mike
Hmm... Can't you compile it the way you wrote it in your question? What does the compiler say? Perhaps I didn't understand the question? :-))
Regards, Madshi.
Regards, Madshi.
I don't think you can have an array for a property.
John.
John.
Please show us the record definition...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Does your record definition show up in the list of available types (dropdown boxes) in the type-lib editor ?
I assume that records should be passed by reference, you may need to add an asterisk (*) to the end of the definition...
Regards
I assume that records should be passed by reference, you may need to add an asterisk (*) to the end of the definition...
Regards
ASKER
Hi Lischke...
yes I can and just did :-) Thanks for the help...
Regards, Jonny...
yes I can and just did :-) Thanks for the help...
Regards, Jonny...
:-) fine, I've learned something new too...
I have no glue so I cannot help you but I would like to know this myself.
Ciao, Mike
PS: I it at all allowed to have array properties in COM objects?