Jump to content

Listview next column


James
 Share

Recommended Posts

Hi,

Since the new release I have not figured out how to add data into different columns. I have tried the old method of using "|" for a new column but it didn't work.

Func _Drives()
    For $a = 1 To $_AllD[0]
        _GUICtrlListView_AddItem($DriveList, StringUpper($_AllD[$a])& "|" & DriveGetLabel($_AllD[$a]), 1)
    Next
EndFunc   ;==>_Drives

Thanks,

James

Edited by JamesB
Link to comment
Share on other sites

Hi,

Since the new release I have not figured out how to add data into different columns. I have tried the old method of using "|" for a new column but it didn't work.

Func _Drives()
    For $a = 1 To $_AllD[0]
        _GUICtrlListView_AddItem($DriveList, StringUpper($_AllD[$a])& "|" & DriveGetLabel($_AllD[$a]), 1)
    Next
EndFunc   ;==>_Drives

Thanks,

James

something like this maybe

GUICtrlCreateListViewItem($Data & "||", $ListView1)

Link to comment
Share on other sites

Func _Drives()
    For $a = 1 To $_AllD[0]
        $iItem = _GUICtrlListView_InsertItem($DriveList, "", -1, 1)
          _GUICtrlListView_SetItemText($DriveList, $iItem, StringUpper($_AllD[$a])& "|" & DriveGetLabel($_AllD[$a]), -1)
    Next
EndFunc   ;==>_Drives

Edited by GaryFrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Ahh right. Thanks G! Why has it changed?

Edit: Nope, it doesn't work. I still get all of the strings in one column.

Have you changed the default Seperator character with Opt?

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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