Your Digital Media Has Never Looked So Good

 
xoceunder
Topic Author
Posts: 36
Joined: Wed Dec 14, 2016 4:08 pm

this error RegWrite help

Fri May 19, 2017 2:59 am

this error RegWrite
Image
 
User avatar
RokuNB
Posts: 106
Joined: Fri Mar 31, 2017 2:22 pm

Re: this error RegWrite help

Fri May 19, 2017 11:07 am

Look at the variable values - `key` is integer, it has to be string
 
xoceunder
Topic Author
Posts: 36
Joined: Wed Dec 14, 2016 4:08 pm

Re: this error RegWrite help

Fri May 19, 2017 11:19 am

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


RegWrite(aa.contentid, aa.position)
 
ljunkie
Posts: 89
Joined: Tue Jun 04, 2013 12:11 am

Re: this error RegWrite help

Fri May 19, 2017 11:39 am

xoceunder wrote:
<Component: roAssociativeArray> =
{
    contentid: 1006
    position: "6.423"
}


RegWrite(aa.contentid, aa.position)

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`
 
xoceunder
Topic Author
Posts: 36
Joined: Wed Dec 14, 2016 4:08 pm

Re: this error RegWrite help

Fri May 19, 2017 12:23 pm

Thanks for the help

Who is online

Users browsing this forum: No registered users and 5 guests