Difference between revisions of "API Component.Property.SetChildValues"

From Flowcode Help
Jump to navigationJump to search
(XML import)
(XML import)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<sidebar>API contents</sidebar>
+
<sidebar>API Contents</sidebar>
 
Sets all child components property as a string
 
Sets all child components property as a string
  
Line 11: Line 11:
  
 
==Parameters==
 
==Parameters==
[[Variable types|HANDLE]] ''Parent''
+
[[Variable Types|HANDLE]] ''Parent''
 
:The owning component whose children will all be written to
 
:The owning component whose children will all be written to
  
[[Variable types|STRING]] ''Property''
+
[[Variable Types|STRING]] ''Property''
 
:The textual name of the property
 
:The textual name of the property
  
[[Variable types|STRING]] ''Value''
+
[[Variable Types|STRING]] ''Value''
 
:The value to update the properties text with
 
:The value to update the properties text with
  
Line 26: Line 26:
  
 
==Detailed description==
 
==Detailed description==
''<span style="color:red;">No additional information</span>''
+
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''.
  
  
Line 33: Line 36:
 
* 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>''
+
''<span style="color:red;">No additional examples</span>''

Latest revision as of 15:57, 16 January 2014

<sidebar>API Contents</sidebar> Sets all child components property as a string

Parameters

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


Return value

This call does not return a value


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")

No additional examples