Solved

how do I use the JvMulistringholder from the jvcl library

Posted on 2009-04-08
2
874 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
[X]
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
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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 column That will then direct you to their download page. From that p…
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.
Suggested Courses
Course of the Month11 days, 7 hours left to enroll

623 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