VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

IsExpired

ignis  (2 Submissions)   Math/Dates   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This code checks the difference between today and any expiration date. Using VB6 functions DateDiff and TimeValue it will evaluate the dates and tell you if we are past the expiration date or not. [Highly commented.]

Inputs
All you need to input is the expiration date and the expiration time. These can be in any format.

Assumes
This code can be used for many things, including shareware locks. You can set an expiration date (e.g. "30 days from today.") and check each day if it has expired. The simple boolean return will tell you if the shareware lock has expired or not.

Returns
This code returns True if we are past the expiration date. It returns False if it has not yet expired.

Rate IsExpired (3(3 Vote))
IsExpired.bas

IsExpired Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters