this error RegWrite help

this error RegWrite

[upload|n0lclX7EWbPye2q4MGHxag==]

Look at the variable values - key is integer, it has to be string

<Component: roAssociativeArray> =
{
contentid: 1006
position: “6.423”
}

RegWrite(aa.contentid, aa.position)

“xoceunder” wrote:

As RokuNB mentioned, your key is a integer. Your registry key/value pair must be strings. In your specific case above, you could use the following to convert the integer to a string.

RegWrite(aa.contentid.toStr(), aa.position)

You could also do some more validation/conversions in RegWrite since you are accepting key as dynamic, value as dynamic

Thanks for the help