Jump to content
Sign in to follow this  
infernothebest

stuck compair time

Recommended Posts

infernothebest

iam making a gui thats sending a file on date/time the problem is the time musn't be lower then the currect time i tryed this but it doesn't function anyone a idea??? thx adv

$tijdstip = GUICtrlCreateInput ( @hour&":"&@MIN, 110,  200, 35, 20)


if GUICtrlread($Date)<@hour&":"&@min Then
    MsgBox(0,"false input ", "false time")
Else
    MsgBox(1, "Selected Execute Time", "You selected this time window: "&GUICtrlread($Date)&"  Time: "&GUICtrlread($tijdstip))
EndIf

Share this post


Link to post
Share on other sites
evilertoaster

The date managment UDFs could help you here.

Currently you are comparing two strings with a less-than which will probably not give you what you are looking for.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.