This content has been marked as final. Show 3 replies
Here is the dirty fix, I'm heading off to sleep.
If the function CurrentAdId doesn't return a number, then this will ensure it returns 0 (prevents your error, may not display an ad):
HINT="For internal use. Returns the Id of the current ad in rotation.">
<!--- Return the adId from the current row of the GetAdIds query --->
<cfset var returnVal = ListGetAt(THIS.AdList, THIS.CurrentListPos)>
<cfif NOT IsNumeric(returnVal)>
<cfset returnVal = 0>
LeftCorner: I can see where this *should* have worked, but it did not. Same error message. --diane
The function CurrentAdId() returns an item from a list. Apparently, the list comprises strings. I would therefore change the return-type to "Any" or "String".