Jump to content

_GUICtrlComboAutoComplete bug?

Recommended Posts

Just to check if I do something wrong or the UDF _GUICtrlComboAutoComplete has an error:

Please try the Example code from the helpfile:

#include <GuiConstants.au3>
#include <GuiCombo.au3>

Opt ('MustDeclareVars', 1)

Dim $Combo, $Btn_Exit, $msg, $old_string = ""

GUICreate("ComboBox AutoComplete", 392, 254)

$Combo = GUICtrlCreateCombo("", 70, 100, 270, 21)
GUICtrlSetData($Combo, "AutoIt|v3|is|freeware|BASIC-like|scripting|language|Autobot|Animal")
$Btn_Exit = GUICtrlCreateButton("Exit", 150, 180, 90, 30)
While 1
    $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
        Case Else
            _GUICtrlComboAutoComplete ($Combo, $old_string)

The error that I got:

Line 264 (File "C:\Program Files\AutoIt3\beta\Include\GuiCombo.au3"):

$s_data = GUICtrlRead($h_combobox)


Error: Variable used without being declared.

Please try this on your computer and reply the results in this topic.



Link to post
Share on other sites

Works ok for me on beta 107

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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

    No registered users viewing this page.

  • Create New...