infernothebest Posted February 1, 2008 Share Posted February 1, 2008 (edited) i wanna make a calender check but it doesnt work, it must prevent that users can select a date before @year/@mon/@day #include <Math.au3> $Date = GUICtrlCreateMonthCal (@YEAR&"/"&@MON&"/"&@MDAY,50, 50,165,140,"",$GUI_DOCKSIZE) $time = @YEAR&@mon&@day $compairtime = _Min($Date , $time) MsgBox(0,"",$compairtime) Edited February 1, 2008 by infernothebest Apple Keybord shortcuts for XP Link to comment Share on other sites More sharing options...
erezlevi Posted February 1, 2008 Share Posted February 1, 2008 i wanna make a calender check but it doesnt work, it must prevent that users can select a date before @year/@mon/@day #include <Math.au3> $Date = GUICtrlCreateMonthCal (@YEAR&"/"&@MON&"/"&@MDAY,50, 50,165,140,"",$GUI_DOCKSIZE) $time = @YEAR&@mon&@day $compairtime = _Min($Date , $time) MsgBox(0,"",$compairtime) Nice! well I think you should either add "/" to the $time, or revert (@YEAR&"/"&@MON&"/"&@MDAY) to numbers only. Link to comment Share on other sites More sharing options...
erezlevi Posted February 1, 2008 Share Posted February 1, 2008 Nice! well I think you should either add "/" to the $time, or revert (@YEAR&"/"&@MON&"/"&@MDAY) to numbers only.you have a mistake! it should be YDAY and not just @day. Link to comment Share on other sites More sharing options...
infernothebest Posted February 1, 2008 Author Share Posted February 1, 2008 i already fixed that all and removed the / but the problem is that its return 0 as value i dont get it Apple Keybord shortcuts for XP Link to comment Share on other sites More sharing options...
erezlevi Posted February 2, 2008 Share Posted February 2, 2008 i already fixed that all and removed the / but the problem is that its return 0 as value i dont get it here is my answer to you: READ THE HELP FILE!!!!!!!!!!! here: Return Value Success: Returns the lower of the two numbers. Failure: Returns 0. @Error: 0 = No error. - 0 no error! 1 = $nNum1 isn't a number. 2 = $nNum2 isn't a number. Link to comment Share on other sites More sharing options...
erezlevi Posted February 2, 2008 Share Posted February 2, 2008 sorry It should be:READ THE HELP FILE! Link to comment Share on other sites More sharing options...
infernothebest Posted February 4, 2008 Author Share Posted February 4, 2008 you are so clever(not) iam trying to get a value not a 0 duhhhhhhhh read the TEXT otherwhise there was no problem Apple Keybord shortcuts for XP 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