Component: Array Helper ( Data)

From Flowcode Help
Jump to navigationJump to search
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.

FC6 Icon.png Web Weather Example


Macro reference

ArrayAddValue

Fc9-comp-macro.png ArrayAddValue
Adds an element to a JavaScript array object. Returns the new size of the array. 
Fc9-h32-icon.png - HANDLE Object
The JavaScript object 
Fc9-u32-icon.png - ULONG Index
The element index 
Fc9-h32-icon.png - HANDLE Element
The new element to add to the array 
Fc9-s32-icon.png - LONG Return


ArrayGetLength

Fc9-comp-macro.png ArrayGetLength
Gets the length of a JavaScript array object 
Fc9-h32-icon.png - HANDLE Object
The JavaScript object 
Fc9-s32-icon.png - LONG Return


ArrayGetValue

Fc9-comp-macro.png ArrayGetValue
Gets the value of an element in a JavaScript array object 
Fc9-h32-icon.png - HANDLE Object
The JavaScript object 
Fc9-u32-icon.png - ULONG Index
The element index 
Fc9-h32-icon.png - HANDLE Return


ArrayIndexOf

Fc9-comp-macro.png ArrayIndexOf
Gets the index of a value within a JavaScript array object 
Fc9-h32-icon.png - HANDLE Object
The JavaScript object 
Fc9-h32-icon.png - HANDLE Value
The value to look for within the array 
Fc9-s16-icon.png - INT Start
The index to start the search (use negative numbers to search backwards) 
Fc9-s32-icon.png - LONG Return


ArrayParse

Fc9-comp-macro.png ArrayParse
Parse a JavaScript array object by calling the macro for each element in the array. 
Fc9-h32-icon.png - HANDLE Object
The JavaScript object 
Fc9-void-icon.png - VOID Return


ArrayRemoveValues

Fc9-comp-macro.png ArrayRemoveValues
Removes elements from a JavaScript array object. Returns the new size of the array. 
Fc9-h32-icon.png - HANDLE Object
The JavaScript object 
Fc9-u32-icon.png - ULONG Index
The element index 
Fc9-u32-icon.png - ULONG Count
The number of values to remove from the array 
Fc9-s32-icon.png - LONG Return


ArraySetValue

Fc9-comp-macro.png ArraySetValue
Sets the value of an element in a JavaScript array object 
Fc9-h32-icon.png - HANDLE Object
The JavaScript object 
Fc9-u32-icon.png - ULONG Index
The element index 
Fc9-h32-icon.png - HANDLE Value
The new value for the array element 
Fc9-void-icon.png - VOID Return


IsArray

Fc9-comp-macro.png IsArray
Returns true if the JavaScript object is an array 
Fc9-h32-icon.png - HANDLE Object
The JavaScript object 
Fc9-bool-icon.png - BOOL Return


Property reference

Fc9-prop-icon.png Properties
Fc9-type-24-icon.png ParseArray macro
Allows an easy way to parse an array element by element