Please enable JavaScript to view this site.

A-Shell Reference

Navigation: Subroutines > INFLD > INFLD Parameters > setdef

List of Paired Inputs

Scroll Prev Top Next More

If type ||L or ||l is specified, then setdef is interpreted as list of pairs, where the first item in each pair is the abbreviated form and the second member is the descriptive form, i.e.:

/01/South/02/North/03/Middle Earth/04/Purgatory//

In the list above, 01,02,03 and 04 are the abbreviated forms what will be used by the application internally, whereas "South", "North", etc. are the descriptive forms that the user will user and type or select from the combo box.

Alternately, the same information can be specified in the form of an ordered map, similar to the method described in List of Valid Inputs, except here the map keys are the abbreviated forms and the values are the descriptive (display) forms, e.g.:

dimx $regions, ordmap(varstr; varstr)

$regions("01") = "South"

$regions("02") = "North"

$regions("03") = "Middle Earth"

$regions("04") = "Purgatory"

xcall INFLD, row, col, ...., funmap, $regions()

 

See the GUI-Related Codes for more details and variations.

History

2023 March, A-Shell 6.5.1727:  Add support to setdef for Ordered Maps