Solved

List View

Posted on 1997-04-30
1
205 Views
Last Modified: 2010-04-04
Dear Experts,I wish to fill a list view with Items and SubItems from an INI file as follows:



Heading1    | Heading2
-------------------------------------
A           | Data for A
B           | Data for B
C           | Data for C
D           | Data for D
...


so the INI file would look something like:

[Heading1]
Value=A,B,C,D ...

[Heading2]
Data="Data for A","Data for B","Data for C","Data for D" ...


I've tried various methods including CommaText and LoadFromFile but can't seem to get it 100%
succesful, I had a wierd thing with CommaText, the first Item wasn't read properly, it completey
ignored the first set of quotes!

Any help would be appreciated, as I don't want to hard code the data into the program.

Thanks in advance,
Antony
0
Comment
Question by:antony burden
[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
1 Comment
 

Accepted Solution

by:
lkovac earned 100 total points
ID: 1335797
You can do it this way:

[Values] {use any name of the section here you wish}
A=Data for A
B=Data for B
C=Data for C
D=Data for D

etc...

This section would be dedicated only for data in the list.

However, if this is Delphi 2.0 (or even 3.0) and 32 bit world, use rather Registry, with about the similar context: one folder (key) in the registry with string items inside (I expect the Data are strings; but here you can use even DWORDs and similar types).
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

726 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