Sign in to follow this  
Followers 0
Naufuge

Script Bug in 3.1.1.95

4 posts in this topic

I downloaded an installed AutoIt 3.1.1.0 and then installed the beta 3.1.1.95 to "Program Files\Software\AutoItv3\beta" but when i try to run my script i get an error, that sais:

_GUICtrlListViewDeleteItemsSelected is an undefined function

even though i have #include <GuiListView.au3>

Why would i get this?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

A more important question is this: Why are you posting this in the Bug Reports forum? You need general support, not a bug-fix. Please think and you'll both solve the problem you are having and avoid posting in the wrong place.

Edit: I moved this to the correct forum.

Edited by Valik

Share this post


Link to post
Share on other sites

#include <GuiConstants.au3>

#include <GuiListView.au3>

Opt ('MustDeclareVars', 1)

Dim $listview, $Btn_DeleteItem, $Btn_Exit, $msg, $Input_item, $Status

GUICreate("ListView Delete Item", 392, 322)

$listview = GUICtrlCreateListView("col1|col2|col3", 40, 30, 310, 149)

GUICtrlCreateListViewItem("line1|data1|more1", $listview)

GUICtrlCreateListViewItem("line2|data2|more2", $listview)

GUICtrlCreateListViewItem("line3|data3|more3", $listview)

GUICtrlCreateListViewItem("line4|data4|more4", $listview)

GUICtrlCreateListViewItem("line5|data5|more5", $listview)

GUICtrlCreateLabel("Enter Item # to Delete:", 90, 190, 130, 20)

$Input_item = GUICtrlCreateInput("", 220, 190, 80, 20, $ES_NUMBER)

GUICtrlSetLimit($Input_item, 1)

$Btn_DeleteItem = GUICtrlCreateButton("Delete Item", 150, 230, 90, 40)

$Btn_Exit = GUICtrlCreateButton("Exit", 300, 260, 70, 30)

$Status = GUICtrlCreateLabel("Remember items are zero-indexed", 0, 302, 392, 20, BitOR($SS_SUNKEN, $SS_CENTER))

GUISetState()

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit

ExitLoop

Case $msg = $Btn_DeleteItem

If (StringLen(GUICtrlRead($Input_item)) > 0) Then

If (_GUICtrlListViewDeleteItem ($listview, Int(GUICtrlRead($Input_item)))) Then

GUICtrlSetData($Status, 'Delete item: ' & GUICtrlRead($Input_item) & ' Successful')

Else

GUICtrlSetData($Status, 'Failed to Delete item: ' & GUICtrlRead($Input_item))

EndIf

Else

GUICtrlSetData($Status, 'Must enter a item to delete')

EndIf

EndSelect

WEnd

Exit

Share this post


Link to post
Share on other sites

#include <GuiConstants.au3>

#include <GuiListView.au3>

Opt ('MustDeclareVars', 1)

Dim $listview, $Btn_DeleteItem, $Btn_Exit, $msg, $Input_item, $Status

GUICreate("ListView Delete Item", 392, 322)

$listview = GUICtrlCreateListView("col1|col2|col3", 40, 30, 310, 149)

GUICtrlCreateListViewItem("line1|data1|more1", $listview)

GUICtrlCreateListViewItem("line2|data2|more2", $listview)

GUICtrlCreateListViewItem("line3|data3|more3", $listview)

GUICtrlCreateListViewItem("line4|data4|more4", $listview)

GUICtrlCreateListViewItem("line5|data5|more5", $listview)

GUICtrlCreateLabel("Enter Item # to Delete:", 90, 190, 130, 20)

$Input_item = GUICtrlCreateInput("", 220, 190, 80, 20, $ES_NUMBER)

GUICtrlSetLimit($Input_item, 1)

$Btn_DeleteItem = GUICtrlCreateButton("Delete Item", 150, 230, 90, 40)

$Btn_Exit = GUICtrlCreateButton("Exit", 300, 260, 70, 30)

$Status = GUICtrlCreateLabel("Remember items are zero-indexed", 0, 302, 392, 20, BitOR($SS_SUNKEN, $SS_CENTER))

GUISetState()

While 1

$msg = GUIGetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit

ExitLoop

Case $msg = $Btn_DeleteItem

If (StringLen(GUICtrlRead($Input_item)) > 0) Then

If (_GUICtrlListViewDeleteItem ($listview, Int(GUICtrlRead($Input_item)))) Then

GUICtrlSetData($Status, 'Delete item: ' & GUICtrlRead($Input_item) & ' Successful')

Else

GUICtrlSetData($Status, 'Failed to Delete item: ' & GUICtrlRead($Input_item))

EndIf

Else

GUICtrlSetData($Status, 'Must enter a item to delete')

EndIf

EndSelect

WEnd

Exit

yeah, or the short answer is to add the

#include <GuiListView.au3>

because that is where the _GUIListView functions are..


1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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