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

From Flowcode Help
Jump to navigationJump to search
(XML Import to change Variable types into Variable Types)
Line 28: Line 28:
  
 
==Detailed description==
 
==Detailed description==
''<span style="color:red;">No additional information</span>''
+
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>
 +
 
  
  

Revision as of 21:14, 11 June 2013

<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

No additional information


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 information