gRevAutoCreateProfiles

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
gRevAutoCreateProfiles
Associationsprofile library
Summary

A special global variable that specifies whether to automatically create a profile when you switch to a new profile.

Introduced2.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
global gRevAutoCreateProfiles
put true into gRevAutoCreateProfiles
set the revProfile of me to "NewProfile"
RelatedProperty: properties
Command: answer, ask
Glossary: object, property, variable, property profile, global
Library: Profile library
Description

Set the gRevAutoCreateProfiles variable to true when adding a new 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 properties. The gRevAutoCreateProfiles variable controls what happens when you set an object's profile to one that does not currently exist. If true, then the new profile will be created.

The gRevAutoCreateProfiles global variable 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".
Tagswindowing