UserProperty

This Application property can set or return the value of the specified property on the currently logged in user’s profile. This command references the App.User function to get the correct user and then looks up the parameter specified. This function also allows you to set properties for users even if they are not managed by RFgen.

If no user record exists, it will create a new user record for the active user id specified via App.User. To create the new user record, the active user must first be selected before executing the App.User command. See also App.UserName.

Group: Application-Based Extension


Syntax: vValue = App.UserProperty(vProperty)

Alternate: App.UserProperty(vProperty) = vValue

vValue        (Variant) is the value stored under the property’s value on the Users profile.

vProperty    (Variant) is the property added to the current user’s profile

Example:

Dim vUserAge As Variant

vUserAge = App.UserProperty("Age")

App.UserProperty("Language") = "English"

 

Notes:     Modified in RFgen 5.2.4.2 to set properties on users not managed by RFgen.

Version Supported:      RFgen 4.0, 4.1, 5.0, 5.1, 5.2 and newer.