A special global that specifies whether to automatically create a property profile when you switch to a new profile.
# Metadata
Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 2.0 Security:
# Syntax
gRevAutoCreateProfiles
# Examples
global gRevAutoCreateProfiles put true into gRevAutoCreateProfiles set the revProfile of me to "NewProfile"
# Description
Set the gRevAutoCreateProfiles variable to true when adding a new property profile. When false, attempts to change to a profile that does not exist are ignored.
Each object can have one or more profiles, which include settings for each property in the object's property. The gRevAutoCreateProfiles variable controls what happens when you set an object property profile to one that does not currently exist. If true, then the new property profile will be created.
The gRevAutoCreateProfiles global can also be changed in the Preferences dialog box:
1. Choose LiveCode ? Preferences from the menubar. 2. Choose "Property Profiles" from the menu at the top. 3. Click "Create profiles automatically".
# Tags
# See
- **property:** properties - **command:** answer, ask - **glossary:** object, property, variable, property profile, global - **library:** Profile library