Sign in to follow this  
Followers 0
devilyn

save a csv file

4 posts in this topic

Hi

how can i save a csv file from GUICtrlCreateListView

thanks in advance

Share this post


Link to post
Share on other sites



Hi

how can i save a csv file from GUICtrlCreateListView

thanks in advance

GUICtrlCreateListView 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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (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 by billmez

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0