f you have a field with type Date and has the following OML on the event “LostFocus” :
if Data = blank then
Data.value := current date .
Data.show () .
end
the field “Data” will not display the current date if you go to it and press the “TAB” button.
That is because all Values in OML is text so you just have to make sure that the value you insert is also text.
if Data = blank then
Data.value := jointext(current date,”") .
Data.show () .
end
All data types in DataEase is automatically converted in DQL and BRL, but in OML you have to insure that you use the right format.


