Component: Array Helper ( Data): Difference between revisions
Appearance
No edit summary |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 38: | Line 38: | ||
===ArrayAddValue=== | ===ArrayAddValue=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ArrayAddValue''' | ||
|- | |- | ||
| colspan="2" | Adds an element to a JavaScript array object. Returns the new size of the array. | | colspan="2" | Adds an element to a JavaScript array object. Returns the new size of the array. | ||
| Line 67: | Line 67: | ||
===ArrayGetLength=== | ===ArrayGetLength=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ArrayGetLength''' | ||
|- | |- | ||
| colspan="2" | Gets the length of a JavaScript array object | | colspan="2" | Gets the length of a JavaScript array object | ||
| Line 86: | Line 86: | ||
===ArrayGetValue=== | ===ArrayGetValue=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ArrayGetValue''' | ||
|- | |- | ||
| colspan="2" | Gets the value of an element in a JavaScript array object | | colspan="2" | Gets the value of an element in a JavaScript array object | ||
| Line 110: | Line 110: | ||
===ArrayIndexOf=== | ===ArrayIndexOf=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ArrayIndexOf''' | ||
|- | |- | ||
| colspan="2" | Gets the index of a value within a JavaScript array object | | colspan="2" | Gets the index of a value within a JavaScript array object | ||
| Line 139: | Line 139: | ||
===ArrayParse=== | ===ArrayParse=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ArrayParse''' | ||
|- | |- | ||
| colspan="2" | Parse a JavaScript array object by calling the macro for each element in the array. | | colspan="2" | Parse a JavaScript array object by calling the macro for each element in the array. | ||
| Line 158: | Line 158: | ||
===ArrayRemoveValues=== | ===ArrayRemoveValues=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ArrayRemoveValues''' | ||
|- | |- | ||
| colspan="2" | Removes elements from a JavaScript array object. Returns the new size of the array. | | colspan="2" | Removes elements from a JavaScript array object. Returns the new size of the array. | ||
| Line 187: | Line 187: | ||
===ArraySetValue=== | ===ArraySetValue=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ArraySetValue''' | ||
|- | |- | ||
| colspan="2" | Sets the value of an element in a JavaScript array object | | colspan="2" | Sets the value of an element in a JavaScript array object | ||
| Line 216: | Line 216: | ||
===IsArray=== | ===IsArray=== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''IsArray''' | ||
|- | |- | ||
| colspan="2" | Returns true if the JavaScript object is an array | | colspan="2" | Returns true if the JavaScript object is an array | ||
| Line 236: | Line 236: | ||
==Property reference== | ==Property reference== | ||
{| class="wikitable | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:22, 13 July 2026
| Author | MatrixTSL |
| Version | 0.1 |
| Category | Data |
Array Helper component
Component designed to allow manipulation of Javascript arrays.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_Array.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Array.fcsx
Detailed description
No detailed description exists yet for this component
Examples
Weather Example
Example program showcasing a number of components used together to collect data from a URL using fetch, before processing the data using the object helper and array helper components.
Macro reference
ArrayAddValue
ArrayGetLength
| ArrayGetLength | |
| Gets the length of a JavaScript array object | |
| Object | |
| The JavaScript object | |
| Return | |
ArrayGetValue
| ArrayGetValue | |
| Gets the value of an element in a JavaScript array object | |
| Object | |
| The JavaScript object | |
| Index | |
| The element index | |
| Return | |
ArrayIndexOf
ArrayParse
| ArrayParse | |
| Parse a JavaScript array object by calling the macro for each element in the array. | |
| Object | |
| The JavaScript object | |
| Return | |
ArrayRemoveValues
ArraySetValue
IsArray
| IsArray | |
| Returns true if the JavaScript object is an array | |
| Object | |
| The JavaScript object | |
| Return | |
Property reference
| Properties | |
| ParseArray macro | |
| Allows an easy way to parse an array element by element | |