# SetElementProperty

Sets the byte offset, the size of an element, and if the element loops, the number of iterations.

This function can only be used in the Util tab.

This function can only be used in Flat representations.

## Related examples

* [Setting a byte offset in a flat structure](https://help.qlik.com/talend/en-US/data-mapper-functions-reference-guide/8.0-R2024-04-and-earlier/setting-byte-offset-in-flat-structure "Use a SetElementProperty and a GetElementProperty function to edit a byte offset in an element.")
* [Setting a dynamic element size in a flat structure](https://help.qlik.com/talend/en-US/data-mapper-functions-reference-guide/8.0-R2024-04-and-earlier/setting-dynamic-element-size-in-flat-structure "Use a SetElementProperty to define the size of an element based on the value of another element in a flat file.")
* [Setting a number of loop iterations in a flat structure](https://help.qlik.com/talend/en-US/data-mapper-functions-reference-guide/8.0-R2024-04-and-earlier/setting-number-of-loop-iterations-in-flat-structure "Use a SetElementProperty to define the number of loops to read for an element and ignore other iterations.")

## Arguments

| Element | Specify the element whose property you want to set. |
| --- | --- |
| Value | Specify the value of the property to set. |

## Properties

| Property | Select the property to set.<br><br><ul> <li> <kbd>Byte                                            offset</kbd>: the byte offset of the element from                                        its enclosing element.</li> <li> <kbd>Number of                                            bytes</kbd>: the size of the element in                                        bytes.</li> <li> <kbd>Loop                                            count</kbd>: the number of iterations for a                                        looping element.</li> </ul> |
| --- | --- |