Statement: set - Hics Extensions
The set statement is part of the Glich language. The Hics extension adds new properties and values to the statement.
Format | Example |
---|---|
set property value; | set context hics; |
The following properties can be changed with the set statement.
Hics Property extension | |
---|---|
Property | Use |
context | Set the output text of certain values. |
input | Set the default calendar scheme input. |
output | Set the default calendar scheme output. |
inout | Set the default calendar scheme for both input and output. |
Setting Property: context
The context property changes some defaults values to suit different contexts. There are currently two possible values: glich, the default and hics for use with the hics extensions.
Format |
---|
set context glich; // Default without Hics library. |
set context hics; // Default with Hics library. |
The settings make the following changes to the input and output.
glich | hics | |
---|---|---|
Field maximum output: | "+infinity" | "future" |
Field minimum output: | "-infinity" | "past" |
Setting Properties: input, output and inout
The system maintains two setting, input and output which can be set directly with the input and output properties. The inout property will set set both input and output settings at the same time.
The settings are in the form of a scheme:format signature. They control the action of the @date, @text and @scheme conversion functions.
Format |
---|
set inout g:dmy; // Default for Hics library. |
set input j:dmy; |
set output h:dmy; |
Whenever one of the conversion functions is used without a qualifier, then either the input or output will be used, as shown in the table.
Function | Default Modifier | Result Value |
---|---|---|
@date(text_value) | input setting | set_type |
@date(scheme_object) | qualifier not required | set_type |
@text(set_type) | output setting | string_type |
@text(scheme_object) | qualifier not required | string_type |
@scheme(set_type) | output setting | scheme_object |
@scheme(text_value) | input setting | scheme_object |