Jump to content

Recommended Posts

Posted (edited)

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
Posted

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)

Posted (edited)

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.

 

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
  • Recently Browsing   0 members

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