Solved

how do I use the JvMulistringholder from the jvcl library

Posted on 2009-04-08
2
858 Views
Last Modified: 2013-11-23
I need to figure out this JvMultiStringHolder from the JVCL Library.

how to add new string holders at runtime
how to set / get the name of that string holder
how to view the text in the string holder
how to delete a string holder

if someone could provide an example project for me that would be great :)
0
Comment
Question by:jamerslong
2 Comments
 
LVL 18

Accepted Solution

by:
Johnjces earned 500 total points
ID: 24160473
You first need to look at it as a StringList with each Item in that "StringList" being another StringList. Therefore multiple StringLists wihtin one Named StringList. (Personally it is easier to create seperate stringlist for such). Anyway..

Add new string holder:
At Runtime: JvMultiStringHolder1.MultipleStrings.Add;
At Design Time: Add under MutipleStrings.

Set the name:
Get the name: Some Boolean := JvMultiStringHolder1.MultipleStrings.DoesNameExist('MYTestHolder');
or for individual StringLists:
JvMultiStringHolder1.MultipleStrings.Items[0].Name := 'StringHolder1';
At Runtime: JvMultiStringHolder1.MultipleStrings.Items[2].Name := 'TestHolder1';

View the text:
Edit 1.Text := := JvMultiStringHolder1.MultipleStrings.Items[0].Strings[2];

Delete a string holder:
JvMultiStringHolder1.MultipleStrings.Delete(3);

To delete a string within a string holder:
JvMultiStringHolder1.MultipleStrings.Items[0].Strings.Delete(3);

I hope this gets you started. Again think of it like:

                 JvMultiStringHolder1
                                 |
StringList1(Name)               StringList2(Name)
         |                                  |
        Item 1                       Item1
        Item 2                       Item 2
        Etc.                               Etc.

I hope the above shows up and I hope this helped you get started!

John
0
 
LVL 4

Author Closing Comment

by:jamerslong
ID: 31568378
Thanks!, forgot to add setting the name to the StringList though, this really helps out alot
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

867 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

17 Experts available now in Live!

Get 1:1 Help Now