Navigation: Function Reference > Study Formula Functions > ThisStudy.getStorage() > TEStorage.setValue()

TEStorage.setValue()

Top  Previous  Next

TEStorage.setValue( offset: Integer; aData: Variant );

 

Sets the value of a storage object at element offset.

 

 

Note: In most cases it will not be necessary to use the setValue() procedure to assign values to a storage object since a storage object can be treated just like an array. Therefore to assign a value to the first element you could use myStorageObject[0] := 10; and to assign a value to the 3rd element you could use myStorageObject[2] := 38.5;

 

 

Parameters

 

offset

integer value (0 or positive offset into what is essentially an array of elements)

aData

variant value to be assigned to the storage object at the assigned element