Jump to content

API Component.Property.SetChildValues: Difference between revisions

From Flowcode Help
JonnyW (talk | contribs)
XML Import to change Variable types into Variable Types
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<sidebar>API contents</sidebar>
{| class="mtx-class-macrotable wikitable"
Sets all child components property as a string
|-
 
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
<div style="width:25%; float:right" class="toc">
| width="90%" class="mtx-class-macrohead" | '''SetChildValues'''
====Class hierarchy====
|-
[[API Component|Component]]
| colspan="2" | Sets all child components property as a string&nbsp;
:[[API Component.Property|Property]]
|-
::[[API Component.Property|SetChildValues]]
|-
</div>
| width="10%" align="center" | [[File:Fc9-h32-icon.png]] - HANDLE
__TOC__
| width="90%" | Parent
 
|-
==Parameters==
| colspan="2" | The owning component whose children will all be written to&nbsp;
[[Variable Types|HANDLE]] ''Parent''
|-
:The owning component whose children will all be written to
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
 
| width="90%" | Property
[[Variable Types|STRING]] ''Property''
|-
:The textual name of the property
| colspan="2" | The textual name of the property&nbsp;
 
|-
[[Variable Types|STRING]] ''Value''
| width="10%" align="center" | [[File:Fc9-string-icon.png]] - STRING
:The value to update the properties text with
| width="90%" | Value
 
|-
 
| colspan="2" | The value to update the properties text with&nbsp;
==Return value==
|-
''This call does not return a value''
| width="10%" align="center" style="border-top: 2px solid #000;" | [[File:Fc9-void-icon.png]] - NONE
| width="90%" style="border-top: 2px solid #000;" | ''Return''
|}




Line 35: Line 37:
===Calling in a calculation===
===Calling in a calculation===
* Add to a calculation icon: <pre class="brush:[cpp]">::Component.Property.SetChildValues(parent, "property", "value")</pre>
* Add to a calculation icon: <pre class="brush:[cpp]">::Component.Property.SetChildValues(parent, "property", "value")</pre>
''<span style="color:red;">No additional information</span>''

Latest revision as of 14:11, 13 July 2026

SetChildValues
Sets all child components property as a string 
- HANDLE Parent
The owning component whose children will all be written to 
- STRING Property
The textual name of the property 
- STRING Value
The value to update the properties text with 
- NONE Return


Detailed description

This call steps through all the children of the component and sets the property specified in each to the given value. It is useful for updating a property in all the children of a group, for example.


Note this does not step through the children of compiled components, only those 'owned' by the Parent.


Examples

Calling in a calculation

  • Add to a calculation icon:
    ::Component.Property.SetChildValues(parent, "property", "value")