set

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
set [the] <property> [of <object>] to <value>
Summary

Assigns a value to a property.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
property

A built-in property name or custom property name.

object

Any object reference. If you don't specify an object, the property must be a global property.

value
Example
set the textFont of button "next" to "Arial"
set the cursor to watch
set the backgroundcolor of graphic "background" to green
RelatedProperty: customPropertySets, customPropertySet
Command: get
Function: value
Glossary: property, custom property, command
Description

Use the set command to change the setting of a property or custom property.

If you specify a property that doesn't exist, LiveCode creates a custom property with that name for the object.

Tagsproperties