09.03.2015 Views

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

display(i,f) writes the local variables of i most recent procedure activations, plus global variables,<br />

to file f.<br />

dtor(r) : real<br />

convert degrees to radians<br />

dtor(r) produces the equivalent of r degrees, expressed in radians.<br />

entab(s, i:9,...) : string<br />

replace spaces<br />

entab(s,i,...) replaces spaces with tabs, with stops at columns indicated. Tab stops are extended<br />

infinitely using the interval between the last two specified tab stops.<br />

errorclear() : null<br />

clear error condition<br />

errorclear() resets keywords &errornumber, &errortext, and &errorvalue to indicate that no error<br />

is present.<br />

eventmask(CE, cset) : cset | null<br />

get/set event mask<br />

eventmask(ce) returns the event mask associated with the program that created ce, or &null if<br />

there is no event mask. eventmask(ce,cs) sets that program’s event mask to cs.<br />

EvGet(c, flag) : string<br />

get event from monitored program<br />

EvGet(c,flag) activates a program being monitored until an event in cset mask c occurs. Under<br />

normal circumstances this is a one-character string event code.<br />

EvSend(i, x, CE) : any<br />

transmit event<br />

EvSend(x, y, C) transmits an event with event code x and event value y to a monitoring coexpression<br />

C.<br />

exit(i:normalexit)<br />

exit process<br />

exit(i) terminates the current program execution, returning status code i. The default is the<br />

platform-dependent exit code that indicates normal termination (0 on most systems).<br />

exp(r) : real<br />

exp(r) produces the result of &e ˆ r.<br />

exponential<br />

fetch(D, s?) : string | row?<br />

fetch database value<br />

fetch(d, k) fetches the value corresponding to key k from a DBM or SQL database d. The result is<br />

a string (for DBM databases) or a row (for SQL databases). For SQL databases, when the string<br />

k is omitted, fetch(d) produces the next row in the current selection, and advances the cursor<br />

to the next row. A row is a record whose field names and types are determined by the columns<br />

specified in the current query. fetch(d) fails if there are no more rows to return from the current<br />

query. Typically a call to dbselect() will be followed by a while-loop that calls fetch() repeatedly<br />

until it fails.<br />

fieldnames(R) : string*<br />

fieldnames(r) produces the names of the fields in record r.<br />

find(s, s, i, i) : integer*<br />

get field names<br />

find string<br />

21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!