Firmwar 5.2 - CreateObject("roDeviceInfo").GetVersion()

I am trying to detect if a Roku has new firmware and has support for captions in the roVideoPlayer. I was going to do a test for 5.2, but i got 5.02? Can I test for that? Is there a better way?


version = CreateObject("roDeviceInfo").GetVersion()
versionNumber = Val(version.Mid(2,4))

print "version: ";version;versionNumber
if (versionNumber >= 5.02)
  print "has caption support"
end if


'this is version variable?
025.02E03264A

Also if i got to Roku box > Settings > Account it shows Version 5.2.build 3264

5.2 is 5.02. They are the same. When you version your channel for publication on the channel store it works the same way. 5.3=5.03, 5.4=5.04, 5.10=5.10

“destruk” wrote:
5.2 is 5.02. They are the same. When you version your channel for publication on the channel store it works the same way. 5.3=5.03, 5.4=5.04, 5.10=5.10

Thanks destruk, then my check should be ok.