Print Page | Close Window

Save to file each item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=16614
Printed Date: 02 May 2024 at 5:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Save to file each item
Posted By: XpatTech
Subject: Save to file each item
Date Posted: 20 April 2010 at 12:40pm
What i need to do is iterate through each category and save out each item within each category.


Layout of PropertyGrid...

Server
..........Server
..........Username
..........Password
..........Path to file
Custom
..........Name Custom Command1
..........Name Custom Command2
..........Name Custom Command3
..........Name Custom Command4
Configuration
..........Name Config1
..........Name Config2
..........Name Config3
..........Name Config4

All i need to print are the child/items which follow the .......... to a text file/string or array.

Its just the iterating through thats giving me a headache.






-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.2
     Platform: Windows Vista Ultimate (32bit) - SP 1
     Language: Visual Basic 6.0



Replies:
Posted By: Aaron
Date Posted: 20 April 2010 at 2:52pm
Hi,
 
I attached sample how you can easely iterate (recursive) through categories.
 
https://forum.codejock.com/uploads/20100420_145143_IterateProperty.zip - uploads/20100420_145143_IterateProperty.zip
 
Hope this helps
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: XpatTech
Date Posted: 20 April 2010 at 3:21pm
Aaron, that was so close to what i needed that even i figured it out. Took about 2 min to get exactly what i wanted.
Your code was brill, thank you very much.




-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.2
     Platform: Windows Vista Ultimate (32bit) - SP 1
     Language: Visual Basic 6.0



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net