The check field statement selects an item in a multi-select list box or places a check mark next to an item in a button drop list.
check field field_name, number
• field_name – The name of the field containing the item you want selected or marked.
• number – An integer indicating which item to select or mark.
Use the finditem() function to retrieve the number of an item from a multi-select list box or any other list field. The retrieved number can then be used as the number parameter.
Always use the check field statement to set the values in a multi-select list box. Never use the set statement to change the items selected in a multi-select list box. |