Property Array

I have a rather unique problem. I want to define a published property for a
component that i am developing. This property is a property array. Check
out the following e.g.

property AProperty[ARow,ACol: Integer] : String read GetAProperty write
SetAProperty;

The property is pointing to a variable like -

FAProperty : array[0..100,0..2] of String;

Now the problem is that nowhere does Delphi say that this kind of property
can be defined only in the public section of the class definition. This i
have found out my banging my head for 2 continuous days and stumbling on
it. If u define it say for example in a published section of a class
definition then it will compile and build the library but when u are trying
to drop the component on a form, it will give u a access violation.

Now i need this property very badly in the published section because i want
to store data that is multi-dimentional. How do i do it ?. Can u help me
out ?. I need this very soon. Please do reply.

FOR JIM BOB

Yes I need a sample code on how to do this. It will be of great help. Thanks a lot.

Bijoy
bijoynAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

JimBob091197Commented:
Delphi Help strikes again...
You need to write your own property editor for published properties with arrays.  Do you require sample code?

JB
0
bijoynAuthor Commented:
Edited text of question
0
bijoynAuthor Commented:
FOR JIM BOB

Yes i would appreciate if u can give me a sample code on how to do this. Thanks.

Bijoy.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

JimBob091197Commented:
Hi

If you provide your e-mail address I will mail you a sample component,
JB
0
bijoynAuthor Commented:
My Email Address is bijoy.nair@na.manpower.com.
Thanks Jim. I owe u one.
0
JimBob091197Commented:
Hi

I have sent you a sample component.  Please let me know if you get it...

JB
0
julio011597Commented:
Hello JimBob,

would you mind sending your sample to me, as well?

my mail address: julio@webzone.it

Thanks in advance, julio
0
bijoynAuthor Commented:
Jim

Thats was cool. It did work for my property and many thanks to
u. Thanks a lot once again.

Bijoy
0
JimBob091197Commented:
julio: I have sent the component to you.

bijoyn: If you are satisfied with the component, I will answer the question.

Regards,
JB
0
bijoynAuthor Commented:
Jim,

Yes my component is working with the solution and the example u have sent to me. I am satisfied with  the solution.

Thanks

Bijoy.
0
JimBob091197Commented:
I have provided a solution with a property editor.

JB
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.