Parse
Enables you to process texts with special functions, such as date, time, calendar days, or hex values.
SYNTAX |
|
ARGUMENTS |
FormattedContent The string to parse |
RETURN |
Formatted text |
Use the ^D[mm,dd,yy,yyyy] function to insert the date.
Arguments |
Definition |
---|---|
mm |
Current month |
dd |
Current day |
yy |
Current year (two figures) |
yyyy |
Current year (four figures) |
Example
Test = Parse("^Ddd.mm.yyyy;")
;-->Test = "05.08.2016"
;
Test = Parse("Current date: ^Ddd.mm.yy;")
;-->Test = "Current date: 05.08.17 "
Use the ^U[hh,mm,ss] function to insert current time.
Arguments |
Definition |
---|---|
HH |
Current hour, 24-hour format |
hh |
Current hour, 12-hour format |
mm |
Current minute |
ss |
Current second |
Example
Test = Parse("^Uhh:mm:ss;")
;-->Test = "10:23:55"
;
Test = Parse("Date: ^Ddd.mm.yy; Time: ^UHH:mm:ss;")
;--Test = "Date: 21.04.17 Time: 19:19:48"
Use the ^K function to insert a calendar week number.
Example
Test = Parse("^K;")
;-->Test = "32"
Use the ^H[Hexvalue] function to insert hexadecimal values
It has a hexadecimal value as an argument.
Example
Test = Parse("^H3F;")
;-->Test = "?"