Jump to content

save a csv file


Recommended Posts

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.

Link to comment
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

Link to comment
Share on other sites

$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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...