Does anyone have a function for VO to increase date/time per second
Posted: Wed Jan 15, 2025 9:27 pm
I need to check for a number of records of 1 database if an entry was created in another one. This is often done on the same second as in database 1, but not always. I could try searching a few more values, each one second later, if not found on the exact time.
This obviously means not only the last second gets one higher but at e.g. 15-1-2025 23:59:59 even the date changes.
Does anyone have some VO code that is handling this and willing to share that?
(Yes I know I can use X# for that as DateTime.AddSeconds(Double) takes care of this all. But the VO programs currently still running for clients will most likely remain VO programs and adding this method in my X# library called from VO usually means I have to go through a lot of troubleshooting first because of Side By Side errors or existing code which doesn't compile anymore in the new X#....I'll only do that if there's no other way).
Speaking of Side By Side errors: I've got one client who gets this error most first time she starts our VO program (using an X# lib, hence this error). She tries again and it starts without the error. The very same program always starts the first time on my system.
How can this be?
Dick
This obviously means not only the last second gets one higher but at e.g. 15-1-2025 23:59:59 even the date changes.
Does anyone have some VO code that is handling this and willing to share that?
(Yes I know I can use X# for that as DateTime.AddSeconds(Double) takes care of this all. But the VO programs currently still running for clients will most likely remain VO programs and adding this method in my X# library called from VO usually means I have to go through a lot of troubleshooting first because of Side By Side errors or existing code which doesn't compile anymore in the new X#....I'll only do that if there's no other way).
Speaking of Side By Side errors: I've got one client who gets this error most first time she starts our VO program (using an X# lib, hence this error). She tries again and it starts without the error. The very same program always starts the first time on my system.
How can this be?
Dick