Displaying TrialDaysRemaining to User

Hello.

I am testing an application that I've written using TurboActivate for 7 day trials, and I would like to display the number of trial days remaining to the user (assuming they are using my Trial Version before activating, of course). I've written code to hold the value from TrialDaysRemaining() and display it to the user.

Then I noticed while the number of days looked correct on the install/initial launch, the subsequent launch (1 minute later) shows 6 days remaining.

I've looked through the forum, and now realize that at launch TrialDaysRemaining equals 7 days; After launch it equals 6 days 23 hours 59 minutes.

I could just change the code to add 1 to the trial days remaining and then only display it on launches after the initial install. My question is what happens when there are under 24 hours left? Does TrialDaysRemaining = 0 at this point? If so, that would seem to indicate an expired trial.

If there is a best practice regarding what I'm trying to accomplish, please let me know. I like the product, and look forward to launching my application soon thanks to your assistance.

Blue Mentat

My question is what happens when there are under 24 hours left? Does TrialDaysRemaining = 0 at this point?

If there's 1 day left then it's 1 day. When there are no more days then it's 0.

If there is a best practice regarding what I'm trying to accomplish, please let me know.

What you intend to do is good.

I like the product, and look forward to launching my application soon thanks to your assistance.

Great, I'm glad you like it. If you have any other questions don't hesitate to ask.

Thanks a lot for the quick reply. I'll implement the code I mentioned. 🙂