I understand that the problem I’ve described may seem at least strange, perhaps not very credible.
I’ve made several tests before writing here.
I will carefully check the settings of the environments I’ve listed and I will update you.
thank you.
Nope, no worries - interesting issue. Did you try your code with a simple newly created Desktop App, or are you running this code in a larger app? It would be good to create a new app, with nothing else than your sample code and check if that one fails as well or not.
sorry, I had forgotten these details.
it is a webapp.
after the first attempts with my project, for the other tests that i described above, I simply created a new application, inserting that code in the Session.Open event.
That was my suspicion as well, but then he would likely get an error during compilation and not only at runtime, right? Very, very strange … @Giacomo_Bernardi what happens if you are writing the “buggy” line 4 exactly than line 2?
Dim dNew as DateTime = ...
But I’m sure you tested this already. Do we have anyone here running Xojo on an Italian Windows 10, who could help? These non-English system issues are often a pain in the neck.
I messed up “separators” and “quotes” … one way or the other, we’ll either all have a good laugh once we found the solution, or it is a weird serious bug.