Difference between revisions of "API System.ClaimEvent"
From Flowcode Help
Jump to navigationJump to search (XML import)  | 
				 (XML import)  | 
				||
| Line 3: | Line 3: | ||
<div style="width:25%; float:right" class="toc">  | <div style="width:25%; float:right" class="toc">  | ||
| − | ===Class hierarchy===[[API System|System]]  | + | ====Class hierarchy====  | 
| + | [[API System|System]]  | ||
:[[API System|ClaimEvent]]  | :[[API System|ClaimEvent]]  | ||
</div>  | </div>  | ||
| Line 9: | Line 10: | ||
==Parameters==  | ==Parameters==  | ||
| − | + | [[Variable types|HANDLE]] ''Target''  | |
:The component that would usually recieve the event  | :The component that would usually recieve the event  | ||
| − | + | [[Variable types|STRING]] ''MsgName''  | |
:The quoted class.name formatted name of the event to claim  | :The quoted class.name formatted name of the event to claim  | ||
| Line 21: | Line 22: | ||
==Detailed description==  | ==Detailed description==  | ||
| − | ''No additional information''  | + | ''<span style="color:red;">No additional information</span>''  | 
| + | |||
==Examples==  | ==Examples==  | ||
| Line 27: | Line 29: | ||
* Declare a variable 'result' of type BOOL  | * Declare a variable 'result' of type BOOL  | ||
* Add to a calculation icon: <pre class="brush:[cpp]">result = ::System.ClaimEvent(target, "msgname")</pre>  | * Add to a calculation icon: <pre class="brush:[cpp]">result = ::System.ClaimEvent(target, "msgname")</pre>  | ||
| + | |||
| + | ''<span style="color:red;">No additional information</span>''  | ||
Revision as of 22:12, 11 May 2013
<sidebar>API contents</sidebar> Claims an event message by name, returns true if claimed
Contents
Parameters
HANDLE Target
- The component that would usually recieve the event
 
STRING MsgName
- The quoted class.name formatted name of the event to claim
 
Return value
Returns true if claimed
Detailed description
No additional information
Examples
Calling in a calculation
- Declare a variable 'result' of type BOOL
 - Add to a calculation icon: 
result = ::System.ClaimEvent(target, "msgname")
 
No additional information