revProfile | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Associations | profile library | ||||||
Summary | |||||||
Introduced | 1.0 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Property: backgroundColor, customPropertySets Keyword: gRevAutoCreateProfiles, gRevProfileReadOnly Command: revSetStackFileProfile Object: button Glossary: object, property, custom property, property profile Library: Profile library | ||||||
Description | Use the revProfile property to switch sets of property values on the fly. When you change the value of a property for an object, the value is stored in the object's current profile. If you later switch back to that profile, the stored values are restored. For example, if you create a profile named "Fluffy" for a button, then set the button's backgroundColor property to "pink", that setting of the backgroundColor property is stored with the Fluffy profile. If you later set the button's profile to "Fluffy", the pink color is restored. If the profileName does not exist for the object, setting the profile either fails silently or creates a new profile with that name for the object. You change this setting using the gRevAutoCreateProfiles variable. (The revProfile property is implemented as a custom property, part of the "cRevGeneral" custom property set. For this reason, you can also refer to it using the custom property set notation, as cRevGeneral["profile"].)
| ||||||
Tags | properties |