Inputfield

A field may be flagged as an input field by listing it in an inputfield statement before it is referenced in any LOAD or SELECT statements.

Note: Key fields cannot be flagged as input fields.

inputfieldfieldlist

fieldlist is a comma separated list of the fields that should be flagged as input fields. The wildcard characters * and ? are allowed in field names. Quoting of field names may be necessary when wildcards are used.

Input fields behave somewhat differently from regular fields. The most important difference is their ability to accept changes in field values, interactively or programmatically, without running the script. Field values must be loaded into the field via LOAD or SELECT statements. Each field value loaded in the script will create a placeholder for a field value replacement value. Only existing field values can thus be changed interactively or programmatically. The replacement value is user dependent, i.e. when an input field is used on a server, different users will see different sets of input field values. In input fields all field values will be treated as distinct, regardless if several have the same value. Input fields normally retain their previously set value after a reload.

Example 1:  

Inputfield B;

Inputfield A,B;

Inputfield B??x*;

Example 2:  

Inputfield I;Load RecNo() as I, RecNo() as K autogenerate 10;

Note: The values in K need to be unique to allow I to be an input field.

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?