|
|||||
Referents: writing data to a referent in a piecemeal fashion | |||||
Prerequisite Concepts | Related Syntax |
If data is to be written to a referent over a period of time, then a referent can be attached to a stream, and data written to that stream in the usual fashion. This is accomplished by using the open...as referent
action.
The following example shows how a referent can be attached to a stream and data written to that stream in a normal fashion (that is, without having to close and reopen the stream each time new data must be added).
Here the stream "chapid" is opened and attached to the referent whose name is the value of the attribute named "id". Notice that the name of the referent is obtained from the document:
local stream chapid ... open chapid as referent "%v(id)"
Prerequisite Concepts Referents |
Related Syntax open |
---- |