From wiki.ginstr.com
Jump to: navigation, search
m (formatting)
 
Line 10: Line 10:
 
===Copy variable values to targets===
 
===Copy variable values to targets===
  
;<code>[gn:act_getVariables]|[source{n};target{n}]</code>
+
:;<code>[gn:act_getVariables]|[source{n};target{n}]</code>
  
{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
+
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
|-
 
|-
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 
|-
 
|-
| [[source]]{n}
+
| <code>[[source]]{n}</code>
 
| [[Variables|variable]] from where the value will be copied
 
| [[Variables|variable]] from where the value will be copied
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
 
** [[Variables|variable]]
 
** [[Variables|variable]]
 
|-
 
|-
| [[target]]{n}
+
| <code>[[target]]{n}</code>
 
| [[:Category:Widgets|widget]] where the variable value will be stored
 
| [[:Category:Widgets|widget]] where the variable value will be stored
 
* Valid [[source|sources]]:
 
* Valid [[source|sources]]:
Line 30: Line 30:
  
 
====Example====
 
====Example====
<code>@variable/userFirstName,@variable/userLastName</code> - source<br>
+
:<code>@variable/userFirstName,@variable/userLastName</code> - source<br>
<code>@+id/user_firstName,@+id/user_lastName</code> - target<br><br>
+
:<code>@+id/user_firstName,@+id/user_lastName</code> - target<br>
<code>[gn:act_getVariables]|[@variable/userFirstName,@variable/userLastName;@+id/user_firstName,@+id/user_lastName]</code>
+
:; ⤷ <code>[gn:act_getVariables]|[@variable/userFirstName, @variable/userLastName;@+id/user_firstName, @+id/user_lastName]</code>
 
<hr>
 
<hr>

Latest revision as of 19:40, 12 July 2017

gn:act_getVariables

Description
Action used to copy variable values in corresponding targets
Action returns
void

Action signatures

Copy variable values to targets

[gn:act_getVariables]|[source{n};target{n}]
Parameter Description
source{n} variable from where the value will be copied
target{n} widget where the variable value will be stored

Example

@variable/userFirstName,@variable/userLastName - source
@+id/user_firstName,@+id/user_lastName - target
[gn:act_getVariables]|[@variable/userFirstName, @variable/userLastName;@+id/user_firstName, @+id/user_lastName]