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

From Flowcode Help
Jump to navigationJump to search
(XML import of API auto-gen)
(XML import)
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<sidebar>API contents</sidebar>
+
<sidebar>API Contents</sidebar>
 
Copies a property filter from one target to another
 
Copies a property filter from one target to another
  
 +
<div style="width:25%; float:right" class="toc">
 +
====Class hierarchy====
 +
[[API Component|Component]]
 +
:[[API Component.Property|Property]]
 +
::[[API Component.Property|CopyFilter]]
 +
</div>
 +
__TOC__
  
===Parameters===
+
==Parameters==
''[[Variable types|HANDLE]] Source''
+
[[Variable Types|HANDLE]] ''Source''
 
:The source component to copy from
 
:The source component to copy from
  
''[[Variable types|HANDLE]] Dest''
+
[[Variable Types|HANDLE]] ''Dest''
 
:The target component to copy to
 
:The target component to copy to
  
''[[Variable types|STRING]] Property''
+
[[Variable Types|STRING]] ''Property''
 
:The textual name of the property
 
:The textual name of the property
  
===Return value===
 
[[Variable types|STRING]]
 
  
No additional information
+
==Return value==
 +
[[Variable Types|STRING]]
  
===Detailed description===
+
The text copied from ''Source'' to ''Dest''.
''No additional information''
 
  
===Examples===
+
 
====Calling in a calculation====
+
==Detailed description==
 +
This copies a properties filter for the named ''Property'' from the ''Source'' component to the ''Dest''. It is provided for convenience.
 +
 
 +
 
 +
An equivalent call using [[API Component.Property.SetFilter|SetFilter]] from ''this'' to a ''dest'' component may be:
 +
:<tt>::Component.Property.SetFilter(dest, "property", this::property)</tt>
 +
 
 +
 
 +
And from any component to another:
 +
:<tt>value = ::Component.Property.GetFilter(source, "property")
 +
:<nowiki/>::Component.Property.SetFilter(dest, "property", value)</tt>
 +
 
 +
 
 +
 
 +
==Examples==
 +
===Calling in a calculation===
 
* Declare a variable 'result' of type STRING
 
* Declare a variable 'result' of type STRING
* Add to a calculation icon: <pre class="brush:[C]">result = ::Component.Property.CopyFilter(source, dest, "property")</pre>
+
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::Component.Property.CopyFilter(source, dest, "property")</pre>
 +
 
 +
''<span style="color:red;">No additional examples</span>''

Latest revision as of 15:57, 16 January 2014

<sidebar>API Contents</sidebar> Copies a property filter from one target to another

Class hierarchy

Component

Property
CopyFilter

Parameters

HANDLE Source

The source component to copy from

HANDLE Dest

The target component to copy to

STRING Property

The textual name of the property


Return value

STRING

The text copied from Source to Dest.


Detailed description

This copies a properties filter for the named Property from the Source component to the Dest. It is provided for convenience.


An equivalent call using SetFilter from this to a dest component may be:

::Component.Property.SetFilter(dest, "property", this::property)


And from any component to another:

value = ::Component.Property.GetFilter(source, "property")
::Component.Property.SetFilter(dest, "property", value)


Examples

Calling in a calculation

  • Declare a variable 'result' of type STRING
  • Add to a calculation icon:
    result = ::Component.Property.CopyFilter(source, dest, "property")

No additional examples