Jump to content
Sign in to follow this  

wipe GUICtrlCreateCombo

Recommended Posts


Hello to all,

i need to wipe entire GUICtrlCreateCombo content, to populate again later.

Exist a quick function to do this ?

thank you for reading,


Share this post

Link to post
Share on other sites

Hi myspacee,

Sorry may be i disundestand you about what & because my English very bad.

I think you are about guictrlsetdata()

My sample:

#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=Form1.kxf
$Form1 = GUICreate("Form1", 301, 164, 349, 237)
$Combo1 = GUICtrlCreateCombo("Combo1", 88, 32, 105, 25)
$Button1 = GUICtrlCreateButton("Generate", 8, 128, 65, 17, $WS_GROUP)
$Button2 = GUICtrlCreateButton("Clear", 168, 128, 73, 17, $WS_GROUP)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Case $Button1
            For $i=0 To 59
If $i <= 9 Then
GUICtrlSetData($Combo1,"0" &$i&"|")
If $i > 9 Then
    GUICtrlSetData($Combo1,$i & "|")
Case $Button2
    GUICtrlSetData($Combo1,"") ;clear


[size="5"] [/size]

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.