Textbox linked fieldΒΆ

field = field_id

index = integer

The field = clause is the only mandatory textbox clause. It specifies the data field which is to be displayed and input in this textbox. The field_id may be the name of a field from a Sculptor file declared in the program, a temporary field, declared within the program by means of the !temp or !record declarations, or a Sculptor system variable. It is recommended that the name is qualified (e.g. tmp.field_id). If the textbox has a rows = or height = clause, the linked field should be an array.

A single field may be linked to more than one textbox, but every textbox must have one, and only one, linked field.

The index = clause is only meaningful if the linked field is subscripted. It specifies which element of the field the textbox is to be linked to.

The index value can be read or updated at run time using the usual form:

box_id->index =


EXAMPLE

!temp Scores,,i2[5]

+textbox Scorebox at 30,5 {
     field = tmp.Scores
     rows = 5
}

RELATED TOPICS

Textboxes