railfan
10 years agoChannel Surfer
Brightscrpt says this is a error
Bridght Script gives me errors on this but the channel works ok. So I am wondering is it really a issue or ???????
Multiple markers at this line
- Syntax error: unexpected token ")", expected one of <NEWLINE>, or ":"
firstAsInt = val(first, 10)
sub startAnimation()
' don't start animation on devices that don't support it
m.model = createObject("roDeviceInfo").getModel()
'Get the first character of the model number. Anything less than a 4 corresponds to a device not suited to animations.
first = Left(m.model, 1).trim()
if first <> invalid and first.Len() = 1
firstAsInt = val(first, 10)
if (firstAsInt) > 3
m.rotationAnimation.control = "start"
m.top.state = "running"
end if
end if
end sub
Multiple markers at this line
- Syntax error: unexpected token ")", expected one of <NEWLINE>, or ":"
firstAsInt = val(first, 10)
sub startAnimation()
' don't start animation on devices that don't support it
m.model = createObject("roDeviceInfo").getModel()
'Get the first character of the model number. Anything less than a 4 corresponds to a device not suited to animations.
first = Left(m.model, 1).trim()
if first <> invalid and first.Len() = 1
firstAsInt = val(first, 10)
if (firstAsInt) > 3
m.rotationAnimation.control = "start"
m.top.state = "running"
end if
end if
end sub