Component: Object Helper ( Data): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 41: | Line 41: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetKeys''' | ||
|- | |- | ||
| colspan="2" | Returns a list of the JavaScript object's keys | | colspan="2" | Returns a list of the JavaScript object's keys | ||
| Line 60: | Line 60: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetValue''' | ||
|- | |- | ||
| colspan="2" | Gets the value for a key in a JavaScript object | | colspan="2" | Gets the value for a key in a JavaScript object | ||
| Line 84: | Line 84: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''JSONToObject''' | ||
|- | |- | ||
| colspan="2" | Converts a JSON string to a JavaScript object | | colspan="2" | Converts a JSON string to a JavaScript object | ||
| Line 103: | Line 103: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''NumberToObject''' | ||
|- | |- | ||
| colspan="2" | Converts a number to a JavaScript object | | colspan="2" | Converts a number to a JavaScript object | ||
| Line 122: | Line 122: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ObjectToFloat''' | ||
|- | |- | ||
| colspan="2" | Converts an object to a floating point value | | colspan="2" | Converts an object to a floating point value | ||
| Line 141: | Line 141: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ObjectToInteger''' | ||
|- | |- | ||
| colspan="2" | Converts an object to an integer | | colspan="2" | Converts an object to an integer | ||
| Line 160: | Line 160: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ObjectToJSON''' | ||
|- | |- | ||
| colspan="2" | Converts an object to a JSON string | | colspan="2" | Converts an object to a JSON string | ||
| Line 179: | Line 179: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ObjectToNumber''' | ||
|- | |- | ||
| colspan="2" | Converts an object to a number | | colspan="2" | Converts an object to a number | ||
| Line 198: | Line 198: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ObjectToString''' | ||
|- | |- | ||
| colspan="2" | Converts an object to a string | | colspan="2" | Converts an object to a string | ||
| Line 217: | Line 217: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetValue''' | ||
|- | |- | ||
| colspan="2" | Sets the value of a key in a JavaScript object. Returns true if the key already exists. | | colspan="2" | Sets the value of a key in a JavaScript object. Returns true if the key already exists. | ||
| Line 246: | Line 246: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''StringToObject''' | ||
|- | |- | ||
| colspan="2" | Converts a string to a JavaScript object | | colspan="2" | Converts a string to a JavaScript object | ||
| Line 266: | Line 266: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | 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:23, 13 July 2026
| Author | MatrixTSL |
| Version | 0.1 |
| Category | Data |
Object Helper component
Component to help when dealing with Javascript objects.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_WEBEXP_Object.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_WEBEXP_Object.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
GetKeys
| GetKeys | |
| Returns a list of the JavaScript object's keys | |
| Object | |
| The JavaSctipt object | |
| Return | |
GetValue
| GetValue | |
| Gets the value for a key in a JavaScript object | |
| Object | |
| The JavaScript object | |
| sKey | |
| The key name | |
| Return | |
JSONToObject
| JSONToObject | |
| Converts a JSON string to a JavaScript object | |
| Text | |
| The JSON string to convert to a JavaScript object | |
| Return | |
NumberToObject
| NumberToObject | |
| Converts a number to a JavaScript object | |
| Var | |
| The number to convert to a JavaSctipt object | |
| Return | |
ObjectToFloat
| ObjectToFloat | |
| Converts an object to a floating point value | |
| Object | |
| The JavaScript object | |
| Return | |
ObjectToInteger
| ObjectToInteger | |
| Converts an object to an integer | |
| Object | |
| The JavaScript object | |
| Return | |
ObjectToJSON
| ObjectToJSON | |
| Converts an object to a JSON string | |
| Object | |
| The JavaScript object | |
| Return | |
ObjectToNumber
| ObjectToNumber | |
| Converts an object to a number | |
| Object | |
| The JavaScript object | |
| Return | |
ObjectToString
| ObjectToString | |
| Converts an object to a string | |
| Object | |
| The JavaScript object | |
| Return | |
SetValue
StringToObject
| StringToObject | |
| Converts a string to a JavaScript object | |
| Var | |
| The string to convert to a JavaScript object | |
| Return | |
Property reference
| Properties |