Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

REFindNocase for numbers???!!!

9 views
Skip to first unread message

ultrakit

unread,
May 4, 2017, 11:46:39 AM5/4/17
to
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.

So each student has a different BookSlectList. Example: it can be NULL (which allows them to see all books), or 1 (which allows them to see Book A) or 1,2,3 (which allows them to see Book A, B, C)

We have the below:

<cfif REFindNocase("(1|2|3|4|5|6)",#Selection.BookSelectList#)>
<cfinclude template="abc.cfm">
</cfif>

Which works fine until we hit book 10, since 10 consist of "1". it will display books 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!
0 new messages