UserPrefData
UserPrefData#('FIELDNAME')
Description
This command will return the value of a named User Preference Field as a number.
Notes
• If the field does not exist in the Form (or its intrinsic value is not a number), then the command will throw a post exception.
• To prevent post exceptions, use the UserPref command beforehand to test if the User Preference Field name is valid.
• If the field's type is 'List' (i.e. a list of combo box items), this command will return the selected list item value's number. Use the 'UserPrefData$' command to retrieve a 'List' field value as a string.
Stats
ID 566 Type Number Class All Machines Min Version 24.0.33
UserPrefData$('FIELDNAME')
Description
This command will return the value of a named User Preference Field as a string.
Notes
• If the field does not exist in the Form (or its intrinsic value is not a string), then the command will throw a post exception.
• To prevent post exceptions, use the UserPref command beforehand to test if the User Preference Field name is valid.
• If the field's type is 'List' (i.e. a list of combo box items), this command will return the selected list item value's string. Use the 'UserPrefData#' command to retrieve a 'List' field value as a number.
Stats
ID 63 Type String Class All Machines Min Version 24.0.33
UserPrefData?('FIELDNAME')
Description
This command will return the value of a named User Preference Field as a Boolean.
Notes
• If the field does not exist in the Form (or its intrinsic value is not a Boolean), then the command will throw a post exception.
• To prevent post exceptions, use the UserPref command beforehand to test if the User Preference Field name is valid.
Stats
ID 727 Type Boolean Class All Machines Min Version 24.0.33