If you have a field with type Date and the following OML on the “LostFocus” event:
if Data = blank then
Data.value := current date .
Data.show () .
end
the field “Data” will not display the current date, if you tab away from it. This is because all values in OML are text, so you just have to ensure the value you insert is also text e.g.
if Data = blank then
Data.value := jointext(current date,”") .
Data.show () .
end
All data types in DataEase are automatically converted in DQL’s and Derivations, but for OML’s you need to ensure you use the correct format.