dash007 Posted March 22, 2005 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
Holger Posted March 22, 2005 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 colors Other old stuff:IconFileScanner, TriState/ThreeState GUI TreeView, GUI ContextMenu created out of a TreeView
BigDaddyO Posted March 22, 2005 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
dash007 Posted March 23, 2005 Author 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.
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