    

 ## On this page

  

 

 # addVariableStructs

 Last update: 30.07.2026 

public [addVariableStructs](add-variable-structs.md)(dhVarStructs: [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)&lt;[DataHistoryVariableStruct](./../-data-history-variable-struct/index.md)&gt;, run: [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html))

Sets the results for a run. This method will add variables to the DataHistory if they are not already present. File variables are not supported.

#### Parameters

dhVarStructsArray of DataHistoryVariableStructs to addrunThe 0 based index to the run to set.