Util.SetSystemText |
Top Previous Next |
Syntax function Util.SetSystemText(SysTextType: integer; Value1: string; [Value2, Value_n: string]): boolean
Description Sets a global system text to the value or values specified.
Returns TRUE if the text has been modified, FALSE otherwise.
SysTextType can be one of the following constants:
See Also
Example execute UDSBlock as declare dtvalue timestamp; begin dtvalue = Util.Now();
/* format date as yyyy-mm-dd and time as hh:nn:ss */ Util.SetSystemText(__sysDateSeperator, '-'); datestr = Util.FormatDateTime('yyyy/mm/dd', dtvalue); timestr = Util.FormatDateTime('hh":"nn":"ss', dtvalue); GUI.ShowMessage('The date: ' || datestr || ', the time: ' || timestr);
/* format combined, 12 hour click with am/pm indicator */ datetimestr = Util.FormatDateTime('dd"/"mm"/"yyyy hh":"nn":"ss am/pm', dtvalue); GUI.ShowMessage('Date and time: ' || datetimestr);
Util.SetSystemText(__sysLongDayNames, 'Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'); /* format with textual representation of day and month with actual text in the formatting string */ datetimestr = Util.FormatDateTime('"Today it''s "dddd", the "d"th of "mmmm" in "yyyy"."', dtvalue); GUI.ShowMessage(datetimestr); end |