Link to home
Start Free TrialLog in
Avatar of saya ishi
saya ishi

asked on

About coldfusion2016 cfloop error

Currently we are migrating from coldfusion 6 to coldfusion 2016.

<cfloop index="RSG004_i" from="1" to="#RSG004_dt.num#" step="1">

I want you to tell me how to deal with this error.
Thank you.
Avatar of gdemaria
gdemaria
Flag of United States of America image

that is not an error, it is a Cfloop statement
Avatar of saya ishi
saya ishi

ASKER

Thank you for your reply

That is not an error
However, when analyzing using the code analyzer of CF 2016, it will get an error on this line.
What is the error message?

The only thing I can see is that you may have a problem with this variable...

RSG004_dt.num


Is it defined?

Is it a structure and is num a valid structure key?

What is the value of the variable?

Is the value numeric?  

A number is expected in the "TO" parameter, ensure the value is a number
Thank you for your reply

The syntax is not wrong. Let's check that RSG004_dt.num is a numerical value.
Thank you politely.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.