UserPrefData: Difference between revisions
JeffBuchan (talk | contribs) Created page with "__NOTOC__==UserPrefData#('FIELDNAME')== {{Description|description=This command will return the value of a named User Preference Field. If the field does not exist in the Form,..." |
No edit summary |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__==UserPrefData#('FIELDNAME')== | __NOTOC__==UserPrefData#('FIELDNAME')== | ||
{{Description|description=This command will return the value of a named User Preference Field. If the field does not exist in the Form, then the command will return | {{Description|description=This command will return the value of a named User Preference Field as a number.}} | ||
{{Notes|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.<br> | |||
• To prevent post exceptions, use the [[UserPref]] command beforehand to test if the User Preference Field name is valid.<br> | |||
• 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|scope=|version=24.0.33}} | {{Stats|id=566|type=Number|class=All Machines|scope=|version=24.0.33}} | ||
[[Category:Output]] | [[Category:Output Control]] | ||
==UserPrefData$('FIELDNAME')== | ==UserPrefData$('FIELDNAME')== | ||
{{Description|description=This command will return the value of a named User Preference Field as a string. If the field does not exist in the Form, then the command will return | {{Description|description=This command will return the value of a named User Preference Field as a string.}} | ||
{{Notes|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.<br> | |||
• To prevent post exceptions, use the [[UserPref]] command beforehand to test if the User Preference Field name is valid.<br> | |||
• 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|scope=|version=24.0.33}} | {{Stats|id=63|type=String|class=All Machines|scope=|version=24.0.33}} | ||
[[Category:Output]] | [[Category:Output Control]] | ||
==UserPrefData?('FIELDNAME')== | ==UserPrefData?('FIELDNAME')== | ||
{{Description|description=This command will return the | {{Description|description=This command will return the value of a named User Preference Field as a Boolean.}} | ||
{{Notes|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.<br> | |||
• To prevent post exceptions, use the [[UserPref]] command beforehand to test if the User Preference Field name is valid.<br> | |||
}} | |||
{{Stats|id=727|type=Boolean|class=All Machines|scope=|version=24.0.33}} | {{Stats|id=727|type=Boolean|class=All Machines|scope=|version=24.0.33}} | ||
[[Category:Output]] | [[Category:Output Control]] | ||
Latest revision as of 21:30, 21 June 2023
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