Geert Posted February 7, 2006 Share Posted February 7, 2006 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 Link to comment Share on other sites More sharing options...
BigDod Posted February 7, 2006 Share Posted February 7, 2006 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 comment Share on other sites More sharing options...
GaryFrost Posted February 7, 2006 Share Posted February 7, 2006 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. Link to comment Share on other sites More sharing options...
Geert Posted February 7, 2006 Author Share Posted February 7, 2006 Thanx 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