devilyn Posted March 14, 2006 Share Posted March 14, 2006 Hi how can i save a csv file from GUICtrlCreateListView thanks in advance Link to comment Share on other sites More sharing options...
billmez Posted March 15, 2006 Share Posted March 15, 2006 Hihow can i save a csv file from GUICtrlCreateListViewthanks in advanceGUICtrlCreateListView creats the control that is then populated using GUICtrlCreateListViewItem.The value returned to GUICtrlCreateListView depends on a list view item being selected, so I don't believe it is possible to read the values in GUICtrlCreateListView, only the selected GUICtrlCreateListViewItem.It would be possible to save the values in a selected GUICtrlCreateListViewItem as a CSV file.I hope you understand this explanation. If you post some code of what you are trying to do with an explanation of what you are trying to accomplish, maybe someone can help you. Link to comment Share on other sites More sharing options...
neogia Posted March 15, 2006 Share Posted March 15, 2006 These two bits of code should greatly help your endeavor. TIP: I pulled these almost directly from the help file. Most questions like these can be solved by looking there first. $numItems = ControlListView($title, $text, $ListViewID, "GetItemCount") $csvString &= ControlListView($title, $text, $ListViewID, "GetText", $i) If $i <> $numItems-1 Then $csvString &= "," EndIf [u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia Link to comment Share on other sites More sharing options...
billmez Posted March 15, 2006 Share Posted March 15, 2006 (edited) $numItems = ControlListView($title, $text, $ListViewID, "GetItemCount") $csvString &= ControlListView($title, $text, $ListViewID, "GetText", $i) If $i <> $numItems-1 Then $csvString &= "," EndIf Missed that one, thanks Edited March 15, 2006 by billmez Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now