I need to try to make some kind of TRIAL version of my app.
I want to make Timer1 period to 2h and then it should close the main app and 3 windows.
Once they start app again it ask for logins, but this i can handle i set up from textfield.Text some integer so if not exactly value app will not open.
thanks
If Timer.Period = 60000 Then
app.close
Window1.Close
Window2.Close
Window3.Close
MsgBox("Your Trial Version Has Expired")
You’ll need to put your code inside the Action event of the Timer. What you’re doing here is just checking if the Timer’s period is set to one minute.
The easiest way to do this is to put a timer object on your main window (assuming it never closes) and then set the Period to 7200000 (that’s in milliseconds, 1000 * 60 * 60 * 2). Add the Action event and add your close code there.
Please some example? coz i tried to do it already and i set timer to 60000, which is 1min just for test, then in action event i set the code and it says the method or property doesnt exist.
So what i need is to Close App completly with my timer after certain period of time.
thanks
Events have to be specifically added to the control (timer in this case).
Did you add it?
Did you read the documentation on how to add it? (please reference comments in other posts you have made)[/quote]
I know it is event of timer action, theres no other field, but anyways it is not debug, i also changed APP name to my app callet TestPaintApp but nothing happens
Tosha - When you Run the app, and you get the error that says “This method or property doesn’t exist”, it highlights something either in the code editor or the errors pane at the bottom of the screen. We really need to know what it’s pointing to, to be able to help.
When i enter “App.” and want to see what option do i have there THERE IS NOT “Quit” at all!
I added befre app.Quit also Window2. because it shoud close that window but still nothing
Events have to be specifically added to the control (timer in this case).
Did you add it?
Did you read the documentation on how to add it? (please reference comments in other posts you have made)[/quote]
YEs Sir your previouse answer was very CORRECT!! you are real coder
But this App.Quit doesnt work for me.
It looks simple but itdoesnt want to quit and it has no any options from when i press TAB after i type App. …and wait what optuions will show, so i dont really know.
Do you mean you changed the name of the application object that appears in the Navigator pane at the left of your Xojo IDE window? If so, then you should replace “app.” in the code withe this new name.
E.g., if you changed the name of the application object from “app” to “myApp” the code in your timer event would be myApp.quit
YEs exactly but it doesnt debug at all, EVEN IN MENU when I type MynewNameApp…and waiting what it show, there is not “Quit” option.
So thats why it ask that no method and no property
i’m so frustrated today
Cuckoo? Nice to meet you my name is Tosha with 17k followers and 5k friends and you? how many you can have on fb anyway? hmm…? regarding your face i would say you pay ppl for following you ahahahah
Ok… that posting just put Tosha Teeple on my “blacklist”…
that being said.
WHO CARES how many “followers” you have on Twitter? or how many “friends” you have on Facebook?
I do not know about Michel (who by the way is also a great contributor to this forum)…
but myself personally (and I am quite proud of these numbers)…
I have ZERO followers on TWITTER
I have ZERO friends on FACEBOOK
Now to you I say good luck with your future endeavours concerning the use of Xojo… and while I cannot speak for the rest of the forum members… I have a zero tolerance policy in regards to braggarts and name callers… So GOOD LUCK!