Skip to main content
CFPike
Participant
October 30, 2018
Answered

Structfind() in CF10 vs. CF2018

  • October 30, 2018
  • 2 replies
  • 916 views

Hi, my code running on CF10 does not work as is on CF2018, although the code analyzer in the administrator didn't highlight any problems.

Structfind() requires a string as second parameter. My code contains structfind usages where the key argument is numeric. In CF2018 this does not work anymore. What's the cure? A setting somewhere or tostring(param) everywhere??? Also, why doesn't it work anymore?

Error: StructFind only supports UDFMethod or String(Key) as second argument as second argument.

Regards,

Peik

This topic has been closed for replies.
Correct answer Bardnet

You reported a bug? Tracker

There are already bug reports around: Tracker

2 replies

BardnetCorrect answer
Inspiring
October 30, 2018

You reported a bug? Tracker

There are already bug reports around: Tracker

WolfShade
Legend
October 30, 2018

CFPike  wrote

What's the cure? A setting somewhere or tostring(param) everywhere??? Also, why doesn't it work anymore?

Unfortunately, this is a user-to-user forum.  Occasionally, someone from Adobe (typically not programmers) might peek in and see what's going on, but the chance of an Adobe rep answering your query is not that high.

Odds are your best bet would be to use tostring() everywhere.  But that's just my opinion.

V/r,

^ _ ^

CFPike
CFPikeAuthor
Participant
October 31, 2018

Yes, my point was not to ask Adobe anything, but rather ask other users if they have had this very same problem and how they solved it.

Apparently there is a bug for this, but I wonder why I didn't see the bug report while googling (actually duckduckgoing) for this issue? I didn't even think of the possibility that this is a bug...

To add tostring() everywhere is an awful solution, but maybe the best one for now.

Thanks.

Inspiring
October 31, 2018

Adobe pages are not well indexed by google etc. I directly searched at the tracker site.