xoceunder
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017
02:59 AM
this error RegWrite help
this error RegWrite

4 REPLIES 4
NB_
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017
11:07 AM
Re: this error RegWrite help
Look at the variable values - `key` is integer, it has to be string
xoceunder
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017
11:19 AM
Re: this error RegWrite help
<Component: roAssociativeArray> =
{
contentid: 1006
position: "6.423"
}
RegWrite(aa.contentid, aa.position)
{
contentid: 1006
position: "6.423"
}
RegWrite(aa.contentid, aa.position)
ljunkie
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017
11:39 AM
Re: this error RegWrite help
"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
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2017
12:23 PM
Re: this error RegWrite help
Thanks for the help