Click to See Complete Forum and Search --> : How to time my APP..?


Lior
September 16th, 1999, 05:03 AM
Hello,
I would like to be able to run my V.B. project in a certain time chosen by the user in this project(i.e. from 14:32 -> 16:54 ).How can I do this? Is this thru API or V.B...???
Also, is there a possibilty to make the project run but not to start with the first form..?

Please shed me some light on this.
Thank-you!!

LED

Lothar Haensler
September 16th, 1999, 06:17 AM
you can start your program with "Sub Main".
Just create a standard module and write a proc
Sub Main
..
end sub

Then in your project properties choose "sub main" as the starting point.

In order to start your program at a certain time use any of the schedulers, e.g. NT's "AT" command.

You could also run your program all the time and have the program "look at the time" at regular intervals and then start the processing whenever you think it's necessary.

Lior
September 21st, 1999, 02:00 PM
Hello LOTHAR,
I did not quite understand how to use this 'NT' command. Can you please send me a code-example or refer me to an exisiting one ?
Thank-you!

LED