?
Solved

List View

Posted on 1997-04-30
1
Medium Priority
?
206 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 300 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

765 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