V
V
Vladimir Yurchenkov2021-09-21 14:47:52
C++ / C#
Vladimir Yurchenkov, 2021-09-21 14:47:52

Why isn't the ListView fully loaded?

I have a ListView in which I load all the headers of the INI file (highlighted in bold).

The composition of the ini file:

[ NAME1 ]
master=blabla
query=blabla

[ NAME2 ]
master=blabla
query=blabla

[ NAME3 ]
master=blabla
query=blabla

I get a list of these headers using the IniFile class , through:
iniFile.GetAllSections();

Well, then I merge all this into a ListView :

IniFile iniFile = new IniFile(@"ini");

string[] vNames = iniFile.GetAllSections();
string val;
int zgl = vNames.Length;

for (int i = 0; i < zgl; I++)
{
val = Convert.ToString(vNames[i]);
ListView.Items.Add(val);


As a result, 40 lines are loaded, although there are more than 200 of them in the file. There are no extra characters in the file, all values ​​alternate equally. What is the jamb?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Yurchenkov, 2021-09-21
@EPIDEMIASH

In general, I figured it out myself ... the answer lies in the class that receives these sections. There was a character limit.
6149ff35590b2170809262.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question