segments

The segments property has two uses:

In both cases, the property holds a two dimensional array of integers.

To create the appearance of a multiline text box, stack one field segment on successive lines at the same form column. The collection of segments acts as one field, as in the following example:
myTextBox ConsoleField {
	segments = [[5,1,10], [6,1,10]], dataType = "string" };
The following example shows the case of the screen array:
myArrayField ConsoleField[5] {
	segments = [[5,1,10], [6,1,10], [7,1,10], [8,1,10], [9,1,10]] };

If you specify a value for segments, EGL ignores the value for position, and you must set fieldLen to the length of all segments combined.

If you specify multiple segments, the behavior of the ConsoleField is also affected by the value of the lineWrap property.

There is no default value for this property. It cannot be updated at run time.

Compatibility

Table 1. Support for segments property
Data item JSF handler VGUI record Console UI Text Form Java™ Text Form COBOL Print Form Java Print Form COBOL
Yes No No Yes No No No No

Feedback