"crawfishmedia" wrote:
Function SetNextOffset(nextOffset as Integer)
nextOffset = nextOffset+50
nextoff = Stri(nextOffset)
nextoff = nextoff.Trim()
return next off ' but I need to return nextOffset too...
End Function
"EnTerr" wrote:"crawfishmedia" wrote:
Function SetNextOffset(nextOffset as Integer)
nextOffset = nextOffset+50
nextoff = Stri(nextOffset)
nextoff = nextoff.Trim()
return next off ' but I need to return nextOffset too...
End Function
I can't imagine using such function to end well. It will be awkward to de-compose the returned result (be it hash or array). Better make an object that holds the offset as a state and add a method (say `getNextOffset`) that returns current offset as string and bumps up the offset
offsetter = {
nextOffset : 0,
getNext : Function()
m.nextOffset = m.nextOffset + 50
return m.nextOffset.ToStr()
End Function
}
x = offsetter.getNext()
"destruk" wrote:
Stri(nextoffset).Trim()
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. You will not be able to log in or post new comments or kudos during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 12 and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
Thanks for your patience — we’re excited to share what’s next!