[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.39 VIEW

Provides write access to various FreeM internal parameters, provided the optional postcondition evaluates to true or is omitted.

Syntax

VIEW[:postcondition] view-number[:view-argument[:view-argument...]]

The view-number argument can be one of the following:

21 - Close All Globals

Closes all global database files open in the current process. Takes no arguments.

Syntax

VIEW 21
29 - Symbol Table Copy

Copies the primary symbol table’s contents to the alternate symbol table. Takes no arguments.

Syntax

VIEW 29
52 - Set G0 Input Translation Table for $IO

Syntax

VIEW 52:expr V trantab
53 - Set G0 Output Translation Table for $IO

Syntax

VIEW 53:expr V trantab
54 - Set G1 Input Translation Table for $IO

Syntax

VIEW 54:expr V trantab
55 - Set G1 Output Translation Table for $IO

Syntax

VIEW 55:expr V trantab
62 - Set $RANDOM Seed Number

Sets the seed number used by $RANDOM to numexpr.

Syntax

VIEW 62:numexpr
63 - Set $RANDOM Parameter A

Sets the number used for $RANDOM Parameter A to numexpr.

Syntax

VIEW 63:numexpr
64 - Set $RANDOM Parameter B

Sets the number used for $RANDOM Parameter B to numexpr.

Syntax

VIEW 64:numexpr
65 - Set $RANDOM Parameter C

Sets the number used for $RANDOM Parameter C to numexpr.

Syntax

VIEW 65:numexpr
66 - Set or Clear SIGTERM Handling Flag

Enables or disables handling of SIGTERM UNIX signals. If tvexpr evaluates to 1 (true), SIGTERM handling will be enabled. Otherwise, SIGTERM handling will be disabled.

Syntax

VIEW 66:tvexpr
67 - Set or Clear SIGHUP Handling Flag

Enables or disables handling of SIGHUP UNIX signals. If tvexpr evaluates to 1 (true), SIGHUP handling will be enabled. Otherwise, SIGHUP handling will be disabled.

Syntax

VIEW 67:tvexpr
70 - Set $ZSORT/$ZSYNTAX Flag

Selects whether $ZS resolves to $ZSORT or $ZSYNTAX.

If tvexpr evaluates to true, selects $ZSYNTAX. Otherwise, selects $ZSORT.

Syntax

VIEW 70:tvexpr
71 - Set $ZNEXT/$ZNAME Flag

Selects whether $ZN resolves to $ZNEXT or $ZNAME.

If tvexpr evaluates to true, selects $ZNAME. Otherwise, selects $ZNEXT.

Syntax

VIEW 71:tvexpr
72 - Set $ZPREVIOUS/$ZPIECE Flag

Selects whether $ZP resolves to $ZPREVIOUS or $ZPIECE.

If tvexpr evaluates to true, selects $ZPIECE. Otherwise, selects $ZPREVIOUS.

Syntax

VIEW 72:tvexpr
73 - Set $ZDATA/$ZDATE Flag

Selects whether $ZD resolves to $ZDATA or $ZDATE.

If tvexpr evaluates to true, selects $ZDATE. Otherwise, selects $ZDATA.

Syntax

VIEW 73:tvexpr
79 - Set Old ZJOB vs. New ZJOB Flag

If tvexpr evaluates to true, sets the ZJOB mode to new, otherwise, sets it to old.

Syntax

VIEW 79:tvexpr
80 - Set or Clear 8-Bit Flag

If tvexpr evaluates to true, sets FreeM to 8-bit mode. Otherwise, sets FreeM to 7-bit mode.

Syntax

VIEW 80:tvexpr
81 - Set or Clear PF1 Flag

If tvexpr evaluates to true, sets the PF1 flag. We do not yet know what this does.

Syntax

VIEW 81:tvexpr
83 - Set or Clear Text in $ZERROR Flag

If tvexpr evaluates to true, descriptive error messages will be included in $ZERROR. Otherwise, only the short error code (i.e. ZILLFUN) will be included in $ZERROR.

Syntax

VIEW 83:tvexpr
87 - Date Type Definition

We believe this defines date formats for $ZDATE, but we have not yet figured out how it works.

Syntax

; Syntax unknown
88 - Time Type Definition

We believe this defines time formats for $ZTIME, but we have not yet figured out how it works.

Syntax

; Syntax unknown
89 - Set Default Expression for Undefined Local Variable

Sets the default expression to be printed when an undefined local variable is encountered. We’re not entirely sure what this does.

Syntax

; Syntax unknown
90 - Set Default Expression for Undefined Global Variable

Sets the default expression to be printed when an undefined global variable is encountered. We’re not entirely sure what this does.

Syntax

; Syntax unknown
91 - Set Default Expression for Missing QUIT Expression

Sets the default expression to be printed when a QUIT is encountered where a QUIT argument would be expected, but was not provided. We’re not entirely sure what this does.

Syntax

; Syntax unknown
92 - Set Type Mismatch Error Flag on EUR2DEM

If tvexpr evaluates to true, a type mismatch error will be thrown in EUR2DEM currency conversions in certain situations that we do not yet understand.

Syntax

VIEW 92:tvexpr
93 - Define ZKEY Production Rule

We do not know what this does.

96 - Set Global Prefix

Forces global database filenames to be prefixed with the result of expr.

Syntax

VIEW 96:expr V string
97 - Set Global Postfix

Forces global database filenames to be postfixed with the result of expr.

Syntax

VIEW 97:expr V string
98 - Set Routine Extension

Sets the default extension for M routine filenames to the result of expr.

Syntax

VIEW 98:expr V string
101 - Set ierr

Sets the FreeM internal ierr value to intexpr. Used by some FreeM polyfills (commands or functions implemented in M code).

Syntax

VIEW 101:intexpr
102 - Set ierr (Deferred)

Sets the FreeM internal ierr value to intexpr, but only after the current process stack level is exited. Used by FreeM polyfills to throw an error that will appear to come from the user’s own code rather than the polyfill implementation M code.

Syntax

VIEW 102:intexpr
103 - Signal MERGE to ^$WINDOW Complete

Signals FreeM’s MWAPI implementation that a MERGE to ^$WINDOW or descendant subscripts thereof has completed.

Syntax

VIEW 103[:subscript]
110 - Set Local $ORDER/$QUERY Data Value

Sets the local variable $ORDER/$QUERY data value to the result of expr. We’re not entirely sure what this is.

Syntax

VIEW 110:expr
111 - Set Global $ORDER/$QUERY Data Value

Sets the global variable $ORDER/$QUERY data value to the result of expr. We’re not entirely sure what this is.

Syntax

VIEW 111:expr
113 - Set termio Information

We don’t know what this does.

133 - Remember ZLOAD Directory on ZSAVE

We don’t know what this does, but it takes a tvexpr.

Syntax

VIEW 133:tvexpr

[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated on September 20, 2023 using texi2html 5.0.