James Posted December 29, 2007 Share Posted December 29, 2007 (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 December 29, 2007 by JamesB Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
searchresult Posted December 29, 2007 Share Posted December 29, 2007 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 More sharing options...
James Posted December 29, 2007 Author Share Posted December 29, 2007 No dice, thanks for the try anyway! Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
GaryFrost Posted December 29, 2007 Share Posted December 29, 2007 (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 December 29, 2007 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 More sharing options...
James Posted December 29, 2007 Author Share Posted December 29, 2007 (edited) Ahh right. Thanks G! Why has it changed?Edit: Nope, it doesn't work. I still get all of the strings in one column. Edited December 29, 2007 by JamesB Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
GaryFrost Posted December 29, 2007 Share Posted December 29, 2007 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 More sharing options...
James Posted December 29, 2007 Author Share Posted December 29, 2007 Duh! Om my god I am stupid. Thanks again! Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now