Solved

how do I use the JvMulistringholder from the jvcl library

Posted on 2009-04-08
2
855 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

758 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