Juanola Posted April 1, 2009 Posted April 1, 2009 $numbers=GUICtrlCreateCombo("",25,$top,300,20,$CBS_DROPDOWNLIST) $number_end=100000 $list_numbers="1|" FOR $ini_number=2 to $number_end step 1 $list_numbers=$list_numbers & $ini_number & "|" Next GUICtrlSetData($numbers,$list_numbers,"330000") I want add in the list combo the value range of number of 1-100000 Thank you!
Mat Posted April 1, 2009 Posted April 1, 2009 (edited) use an input? a combo up to 100,000 is not clever. edit: unless there is something specific you want it to do. if It's for inputting numbers, then It's not clever. elseIf Purpose = Special Then me = wrong EndIf Edited April 1, 2009 by mdiesel AutoIt Project Listing
ResNullius Posted April 2, 2009 Posted April 2, 2009 $numbers=GUICtrlCreateCombo("",25,$top,300,20,$CBS_DROPDOWNLIST) $number_end=100000 $list_numbers="1|" FOR $ini_number=2 to $number_end step 1 $list_numbers=$list_numbers & $ini_number & "|" Next GUICtrlSetData($numbers,$list_numbers,"330000") I want add in the list combo the value range of number of 1-100000 Thank you!This method of building the numbers list appears to be faster: #include <ComboConstants.au3> GuiCreate("test") $top = 10 $numbers=GUICtrlCreateCombo("",25,$top,300,20,$CBS_DROPDOWNLIST) $number_end = 100000 $list_numbers="" $tempcount = 1 $Start = TimerInit() FOR $ini_number=1 to $number_end step 1 $list_numbers &= $ini_number & "|" Next GUICtrlSetData($numbers,$list_numbers,"330000") GUISetState() ConsoleWrite(TimerDiff($start) & @crlf) Do Sleep(10) Until Guigetmsg() = -3
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