Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how do I use the JvMulistringholder from the jvcl library

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Making delphi communicate with a c# service 16 111
Convert MS Word document to a PDF file 9 90
oracle 11g 23 106
Microsoft Access 97 and Delphi XE2 9 53
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 Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

840 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