gRevProfileReadOnly

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
gRevProfileReadOnly
Associationsprofile library
Summary

A special global variable that specifies whether to save changes to the current profile when you switch profiles.

Introduced2.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
global gRevProfileReadOnly
if gRevProfileReadOnly is false then switchToLargeFonts
RelatedProperty: properties
Command: answer, ask
Glossary: object, property, variable, property profile, global
Library: Profile library
Description

Set the gRevProfileReadOnly variable to false when configuring a profile, so that changes you make to an object's properties are saved in the current profile.

Each object can have one or more profiles, which include settings for each property in the object's properties property. The gRevProfileReadOnly variable controls what happens when you set an object's profile, make changes to its properties, then switch to a different profile.

If this global variable is false, the profile is re-saved when you switch profiles, and any property changes you've made are saved in the profile. If it's true, the profile isn't saved when you switch to another profile.

The gRevProfileReadOnly 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 "Don't save settings when switching profiles".
Tagswindowing