Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8128185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:47:53+00:00 2026-06-06T07:47:53+00:00

ColdFusion’s documentation for the valuelist function says that it does NOT evaluate the values,

  • 0

ColdFusion’s documentation for the valuelist function says that it does NOT evaluate the values, and that’s how it’s always behaved for me in the past. I’ve used the valuelist function many times in the past and have never encountered this issue before. We’re using CF9.0.1 but this originally popped up on an instance of CF9.0.

The situation came up as we pull number values from an Oracle database, which DOES support float values. The values stored are all integers, not floats. The code below replicates the behavior we’re seeing. The data is retrieved via stored procedures which we CAN change (using CAST), but would like to avoid if possible.

<cfscript>
    qryVLTest = queryNew('member_id') ;
    for ( i = 1; i LTE 10; i=i+1) {
      queryAddRow(qryVLTest,1) ;
      querySetCell(qryVLTest,'member_id',i) ;   
    }
    writedump(qryVLTest) ;
    writeoutput(valuelist(qryVLTest.member_id)) ;
</cfscript>

The dump displays the values I expect: integers 1-10.

However, the output of the valuelist function is returning the following:

1,2.0,3.0,4.0,5.0,6.0,7.0,8.0,9.0,10.0

All values after the first one are being evaluated and converted into floats. Why is this, and how can I prevent this in the future?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T07:47:54+00:00Added an answer on June 6, 2026 at 7:47 am

    You have 2 choices. You could do:

    querySetCell(qryVLTEst,"member_id","#i#")
    

    Which should force a string. Or you can specify INT if that is what you want (as azawaza has indicated).

    queryNew("member_id","Integer");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does ColdFusion offer a mechanism for splitting CFCs into multiple files? I am NOT
I am using coldfusion's imageGetIPTCMetadata() function to get the iptc keywords. I used Photomechanics
Quoted from the Adobe ColdFusion 10: Using closures documentation : function helloTranslator(String helloWord) {
In ColdFusion I can see the code below, however it does not seem to
In ColdFusion, the arrayAppend() function takes an array and an item to be appended.
In coldfusion, how does one round a decimal to the nearest 5 cents? So
ColdFusion sets the CFID and CFTOKEN cookie on every single page, obviously connecting that
ColdFusion 8 I have a cfgrid that that is based on a query. It
I am using ColdFusion 9.1.0. I am working on part of a site that
Does Coldfusion have a Global structure where the expressions global[FORM] , global[URL] , global[APPLICATION]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.