Hi,
I need help on the function REFindNocase. The project is old and still using CF9 so there is a limitation on what can be use.
Each student has a different BookSelectList. Example: it can be NULL (which allows them to see all books), or 1 (which allows them to see only Book A) or 1,2,3 (which allows them to see only Book A, B, C)
We have the below:
<cfif REFindNocase("(1|2|3|4|5|6)",#Selection.BookSelectList#)>
<cfinclude template="showbooks.cfm">
</cfif>
Which works fine until we hit book 10, since 10 consist of "1". REFindNocase will return 1 and display something they are not meant to see.
What can I do to avoid that? Can REFindNOcase compare Numbers instead of String? If so, how it can be done?
Thanks in advance!