Add To listview from inputs using button

11/14/2018 19:45 Anja Mielbrecht#1
#CLOSE
11/15/2018 02:47 Moneypulation#2
PHP Code:
#include <GuiListView.au3>

[...]

Case 
$add
            addItemToListView
()

[...]

Func addItemToListView()
    
$currLen _GUICtrlListView_GetItemCount($ListView1)
    
_GUICtrlListView_AddItem($ListView1GUICtrlRead($old))
    
_GUICtrlListView_AddSubItem($ListView1$currLenGUICtrlRead($new), 1)
    
_GUICtrlListView_AddSubItem($ListView1$currLenGUICtrlRead($color), 2)
EndFunc 
11/15/2018 07:23 Anja Mielbrecht#3
Quote:
Originally Posted by Moneypulation View Post
PHP Code:
#include <GuiListView.au3>

[...]

Case 
$add
            addItemToListView
()

[...]

Func addItemToListView()
    
$currLen _GUICtrlListView_GetItemCount($ListView1)
    
_GUICtrlListView_AddItem($ListView1GUICtrlRead($old))
    
_GUICtrlListView_AddSubItem($ListView1$currLenGUICtrlRead($new), 1)
    
_GUICtrlListView_AddSubItem($ListView1$currLenGUICtrlRead($color), 2)
EndFunc 
[Only registered and activated users can see links. Click Here To Register...] this is the result without including

but wheni include the guilistview.au3 i got this
[Only registered and activated users can see links. Click Here To Register...]
11/15/2018 17:01 Moneypulation#4
Obviously two UDFs you include are using the same name for a global const. One of them seems to be the GuiListView.au3, so I suggest you just open it (in your autoit installation path --> include folder) and perform something like a replace all occurences of "$MEM_COMMIT" with "$SOMETHING_DIFFERENT" in your favorite text editor, i.e. SciTe
11/15/2018 18:28 Anja Mielbrecht#5
Quote:
Originally Posted by Moneypulation View Post
Obviously two UDFs you include are using the same name for a global const. One of them seems to be the GuiListView.au3, so I suggest you just open it (in your autoit installation path --> include folder) and perform something like a replace all occurences of "$MEM_COMMIT" with "$SOMETHING_DIFFERENT" in your favorite text editor, i.e. SciTe
Hmm could u be more clear please lol