crawfishmedia
12 years agoBinge Watcher
Function, return two values
Hi guys, I am curious how to create a function that will return two values instead of just one.
I am passing in 'nextOffset', which is an integer value. I need to return the new 'nextOffset' value since its incremented, and I need to return 'nextoff', which is the string version of the nextOffset. The 'nextoff' string will be used in a URL later in the code. Any help is appreciated. Thanks.
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 am passing in 'nextOffset', which is an integer value. I need to return the new 'nextOffset' value since its incremented, and I need to return 'nextoff', which is the string version of the nextOffset. The 'nextoff' string will be used in a URL later in the code. Any help is appreciated. Thanks.
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