NetAlive Documentation

Field Tutorial

NetAlive can treat data as either a single unit or a series of records.

Setting a widget's "Field" parameter to nonzero enables the record-oriented interpretation. For "Field" n, if 0 < n < 100, the data is taken to be a series of lines and the widget selects the n'th line. If n > 100, the data is taken to be a series of tab-separated words and the widget selects the n'th word.

A field-enabled widget displays only the selected field, although the entire data is retained internally and used for output.

A field-enabled text prefixes output data with the field number. Example: a text widget containing data "abc" and set to field 101 would output "101 abc."

Fields are implemented for text and list box widgets only.

Interactive Demonstration

Press to invoke tutfield.net.

Each line in the list box contains three tab-separated fields. Text boxes have a (currently unchangeable) tab spacing.

Change the selection in the list box. The list box emits whole lines each time the selection changes and sends them to widgets English, Arabic, and Roman. However, the widgets are each set to retrieve a different field. Specifically, their "Field:" parameters are set to 101, 102, and 103.

Select text box English or Arabic by clicking the mouse in one of them. Deselect by typing Tab. Note that their output shows the selected word preceeded by the field number 101, 102, or 103.

List box Roman selects the third tab-separated field (103) but stores the entire data internally. This is evident by selecting entries in Roman and observing the output below.


[NetAlive Documentation Home Page][NetAlive Home Page]