Home > database >  Help! How the treeview node under the name of station flow addresses corresponding to the file?
Help! How the treeview node under the name of station flow addresses corresponding to the file?

Time:09-28

Novice, doing a Internet radio player recently, how to control the treeview under all levels of child nodes corresponding to the text file according to the format of writing under the flow of each station address? Please answer, thank you!!!!!!!!!!!

CodePudding user response:

Be involved in the text file format, top stick!

CodePudding user response:

1 first to deal with a text file

2 have the format, content, just take out the corresponding field to analyze the relationship between the superior and the subordinate, done with

3 set up a table field: radio station address code above code below the parse of text content to list

4 spanning tree traversal table content

Great reference: http://topic.csdn.net/u/20100524/16/dbe73d36-1df5-4adc-8223-b45eda40c8f0.html

CodePudding user response:

Treeview treeviewitem has a any data
It can be used to do data index,
Data sources can be: datastore or array,
Is the datastore ID=GetRowIdFromRow can be it

CodePudding user response:

Tree contact data value type is: any, this is a good thing, you can create a structure, such as:
Global type s_diantai from structure
String itemid
String itemname
.
End type

Then, you need some information retrieval in the text, or the entire record can be integrated into your tree,
  • Related