Sign in to follow this  
Followers 0
Geert

_GUICtrlComboAutoComplete bug?

4 posts in this topic

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)
GUISetState()
While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE Or $msg = $Btn_Exit
            ExitLoop
        Case Else
            _GUICtrlComboAutoComplete ($Combo, $old_string)
    EndSelect
WEnd
Exit

The error that I got:

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

$s_data = GUICtrlRead($h_combobox)

^ ERROR

Error: Variable used without being declared.

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

Thanx,

Geert

Share this post


Link to post
Share on other sites



Works ok for me on beta 107



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

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

Share this post


Link to post
Share on other sites

Works ok for me on beta 107

The Variable declare statement needs to be moved, i'll let jdeb know.


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

Thanx

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