Sign in to follow this  
Followers 0
James

Listview next column

7 posts in this topic

#1 ·  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

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

#4 ·  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.

 

Share this post


Link to post
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.

 

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