|
-
Aug 30th, 2000, 07:17 PM
#3
Thread Starter
Member
The program reads and writes the file perfectly and it has to be in a specific format that doesn't allow for any extra characters, the file is compiled by a different program.
I need a little code that will iterate through the treeview( not by index value ) and send the .text and .tag to a sub routine.
For some reason I can't figure out how to iterate through it without creating extra nodes and it's starting to make me angry. Sending the text and tag of each node in order of appearance shouldn't be that hard. It works great if I use the index of each node but then I have to add to the treeview node list and the indexes are created staticly so even if you sort it you can't use the index to output to a file cause what you just added is now at the bottom of the index and will be wrote to the file that way.
The output has to be in alphabetical order by Parent node not child node. Here's a run down of the file format:
; these are comment indicators
; this line contains the number of parent nodes eg: 5000 items in list
;
; each parent node has one of these preceding it in the file
"Parent nodes and primary child nodes are enclosed in quotes and are no longer than 30 characters"
"This is a primary child node the following is a secondary node that is a child of the primary and is a hex number stored as a string there is not set limit on the number of primary or secondary nodes"
8001234 0000
8002345 0000
.end ' this signals the end of the parent nodes entry
; this process repeats until the file length reaches 64k or approximately 5300 nodes
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|