Solved

how do I use the JvMulistringholder from the jvcl library

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
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 use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

831 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