dash007 0 Posted March 22, 2005 Guys, I use a GUI inputbox and the script GUICtrlSetLimit($input, 12, 2) This restricts maximum entry to 12 but somehow the minimum does not seem to work (in the above example it should be 2). Any advice. Also is there a script to check if the field is blank. Thanks in adv Share this post Link to post Share on other sites
Holger 14 Posted March 22, 2005 Please check the helpfile again min [optional]For Slider and UpDown controls you can specify a min value. Old project:GUI/Tray menu with icons and colorsOther old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView Share this post Link to post Share on other sites
BigDaddyO 61 Posted March 22, 2005 (edited) To Check if it's blank you will have to use something likeif StringLen($InputBoxID) = 0 then msgbox(0, "Blank", "Hay Stupid type something"). for the minimimum I would guess something simmilar. If StringLen($InputBoxID) < 2 Then msgbox(0, "Less then 2", "You must have at least 2") Edit: Forgot you have to read the inputbox to get the text. $InputBoxID = GUICtrlRead($InputBox1) Edited March 22, 2005 by MikeOsdx hmm... I guess I have to have a signature... Share this post Link to post Share on other sites
dash007 0 Posted March 23, 2005 To Check if it's blank you will have to use something likeif StringLen($InputBoxID) = 0 then msgbox(0, "Blank", "Hay Stupid type something").for the minimimum I would guess something simmilar. If StringLen($InputBoxID) < 2 Then msgbox(0, "Less then 2", "You must have at least 2")Edit: Forgot you have to read the inputbox to get the text.$InputBoxID = GUICtrlRead($InputBox1)<{POST_SNAPBACK}>MikeOsdx, thanks for your help, I will try it tonight. Share this post Link to post Share on other sites