Fandom

Livecode Wiki

Set

1,968pages on
this wiki
Add New Page
Comments0 Share

Assigns a value to a property.

Syntax:

set [the] <property> [of <object>] to <value>

Examples:

set the textFont of button "next" to "Arial"
set the cursor to watch
set the backgroundcolor of graphic "background" to green

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.

Parameters:

  • 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 (string):
  • Description:Use the set command to change the setting of a property or custom property.

See also: customPropertySets (property), customPropertySet (property),

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.