• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Silly Err

Participant ,
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

My mind is kinna busy...I dont know how to fix this err..currently...


Error Occurred While Processing Request
Invalid list index 4.
In function ListDeleteAt(list, index [, delimiters]), the value of index, 4, is not a valid as the first argument (this list has 3 elements). Valid indexes are in the range 1 through the number of elements in the list.

The error occurred in D:\CFusionMX\wwwroot\genbid\genbid_app\t.cfm: line 161

159 : </select><br />
160 :
161 : <cfset idList =listdeleteat(idList,hj )>
162 :
163 : </cfif>



TOPICS
Advanced techniques

Views

347

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 12, 2007 Jan 12, 2007

Copy link to clipboard

Copied

What is displayed when the following debug code is added right before line 161?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 15, 2007 Jan 15, 2007

Copy link to clipboard

Copied

facspot: 8 fs: 3
facspot: 8 fs: 3
facspot: 8 fs: 3
facspot: 3 fs: 3
facspot: 3 fs: 3
facspot: 3 fs: 3

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 15, 2007 Jan 15, 2007

Copy link to clipboard

Copied

quote:

Originally posted by: emmim44
My mind is kinna busy...I dont know how to fix this err..currently...
Error Occurred While Processing Request
Invalid list index 4.
In function ListDeleteAt(list, index [, delimiters]), the value of index, 4, is not a valid as the first argument (this list has 3 elements). Valid indexes are in the range 1 through the number of elements in the list.


Trying to delete the 4th item of a list with 3 items seems pretty clear to me.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 16, 2007 Jan 16, 2007

Copy link to clipboard

Copied

Please read the question and see the code..This is not the answer...Still err

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 16, 2007 Jan 16, 2007

Copy link to clipboard

Copied

The error you are getting says you are trying to delete the 4th item when there are only 3. So how is that not the problem?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 17, 2007 Jan 17, 2007

Copy link to clipboard

Copied

LATEST
Solved.Thank u all.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation