TRzChecklist (from Raize-components) with objects

Posted on 2008-11-11
Last Modified: 2013-11-23

I use a TRzCheckList (Raize-components) and I can add items with objects like MyCheckList.AddObject(MyString, MyObject) but I can not find how to access the object later (there is no MyCheckList.Objects-property as ther is in TStringlist.

Thanks for your help

Question by:formi
    LVL 14

    Accepted Solution

    You need to do something like this
      MyObject := TMyObject(MyCheckList.Items.Objects[index]);

    Author Comment

    That's not what I need to know. The problem is that this component (TRzCheckList) seems to have a method "AddObject" but no property "Objects" to access it. I sent an EMail to the developer of that component ( and so I try to close this thread.
    Thank you anyway

    Author Comment

    How can I close this question?
    LVL 14

    Expert Comment

    In Raize Comp many methods are exposed as a mater of convenience. MyCheckList.Add and MyCheckList.AddObject are the same as MyCheckList,Items.add and MyCheckList.Items.AddObject. I do not believe that Ray exposed MyCheckList.Items.Object in the same fashion.

    Author Closing Comment

    Sorry, you helped me! I really didn't check it first, but it's really the solution. Sorry and thanks, Peter

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Java/J2EE and SOA

    This course will cover both core and advanced Java concepts like Database connectivity, Threads, Exception Handling, Collections, JSP, Servlets, XMLHandling, and more. You'll also learn various Java frameworks like Hibernate and Spring.

    A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
    In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now