Default value for Date/time global

Hi,

is it possible to set a default value for a Date/Time global variable, for example the current date?

I now entered now(), but that doesn’t seem to cut it.

Paul

I think it’s “now”…

Hi Paul,

The default values in fields (or globals) don’t “evaluate”. They are meant for hard-coded values (at this point).

Sorry!

Too bad… :? I use a Global Date/Time variable in a relation and in Developer, the onSolutionLoad method is not fired when you switch from desigmode back to formview. And that’s where I set the value otherwise.

So now I get loads of calculations errors, since I have quite a few calculations based on this relation.

Now I have to always switch to formview on antoher form, click a button there that will fire the onsolutionLoad method and switch to the main form.

I can built in all kind of checks if the onSolutionLoad has been run allready and if not run it, but this complicates code a lot…

Paul

Then just put “now” in there…

Ha, thought Bob said it wasn’t possible. Works like a charm, tnx!

Bob meant that you cannot put a fancy function in there that would be evaluated. He probably thought you wanted to do that because you wrote “now()”…

Probably, at least now my problem is solved :-)