Jump to content

Need help with a run-time "drop dead" script


 Share

This topic is 5748 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Greetings, everyone!

I've created a demo-type database (in a run-time solution) but want it to "drop dead" 14 days after its hard-coded start date. The date calculation parts works fine, but as much as I've tinkered with the script to have the solution shut down after the drop dead date, I can't get it to work; I'm missing something. Thanks in advance for your help and have a prosperous and healthy 2007!

Here's what I have so far:

Table = Main

Demo_start_date (Type: Date)

Demo_expire_date = Demo_start_date + 14 (Calculation Result: date)

Demo_countdown = Demo_expire_date - Get(CurrentDate) (Calculation Result: Number)

Script:

If[Main::Demo_expire_date > Get(CurrentDate)]

Exit Application

Else

Perform Script ["Splash screen"]

End If

Link to comment
Share on other sites

This topic is 5748 days old. Please don't post here. Open a new topic instead.

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

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.