Jump to content

calender check


Recommended Posts

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 by infernothebest
Link to comment
Share on other sites

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...