retrieves a preference value

Syntax

allPref = swpref.getpref

selPref = swpref.getpref(name)

val = swpref.getpref(name,[])

Description

allPref = swpref.getpref returns all preference in a struct where each field-value pair corresponds to a prefernce name-value pair.

selPref = swpref.getpref(name) returns a struct that contains the value, name and label of the selected preference.

val = swpref.getpref(name,[]) just returns the stored value corresponding to name preference.

See Also

swpref.setpref