<doc>
	<legacy_id>2332</legacy_id>
	<name>set</name>
	<type>command</type>

	<syntax>
		<example>set [the] <i>property</i> [of <i>object</i>] to <i>value</i></example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>Assigns a <function tag="value">value</function> to a <glossary tag="property">property</glossary>.</summary>

	<examples>
<example>set the textFont of button "next" to "Arial"</example>
<example>set the cursor to watch</example>
<example><p>set the backgroundcolor of graphic "background" to green</p></example>
	</examples>

	<history>
		<introduced version="1.0">Added.</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
	</objects>

	<platforms>
		<mac/>
		<windows/>
		<linux/>
		<ios/>
		<android/>
	</platforms>

	<classes>
		<desktop/>
		<server/>
		<web/>
		<mobile/>
	</classes>

	<security>
	</security>


	<classification>
		<category>Values &amp; Properties</category>
	</classification>

	<references>
		<command tag="get">get Command</command>
		<property tag="customPropertySets">customPropertySets Property</property>
		<property tag="customPropertySet">customPropertySet Property</property>
	</references>

	<description>Use the <b>set</b> <glossary tag="command">command</glossary> to change the setting of a <glossary tag="property">property</glossary> or <property tag="customProperties">custom property</property>.<p></p><p><b>Parameters:</b></p><p>The <i>property</i> is a built-in <glossary tag="property">property</glossary> name or <property tag="customProperties">custom property</property> name.</p><p></p><p>The <i>object</i> is any object reference. If you don't specify an <i>object</i>, the <i>property</i> must be a <glossary tag="global">global property</glossary>.</p><p></p><p>The <i>value</i> is any <glossary tag="expression">expression</glossary> that <glossary tag="evaluate">evaluates</glossary> to a <keyword tag="string">string</keyword>.</p><p></p><p><b>Comments:</b></p><p>If you specify a property that doesn't exist, LiveCode creates a custom property with that name for the <i>object</i>.</p></description>
</doc>