[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.8

String index out of range: 0

Asked by LozLaura17 in ColdFusion Application Server

Tags: index, out, string, 0, range

Hi i have been running a test on the last page of my project and i cannot seem to get over the error that comes up.  can someone explain where i am going wrong.  the error is :

String index out of range: 0
 
The error occurred in C:\CFusionMX\wwwroot\Project\Beginner\RAM.cfm: line 176

174 : #CurrentRAMSize.TotalRAM#
175 :
176 : <cfif isDefined(#CurrentRAMSize.TotalRAM#)>
177 :       <cfif #CurrentRAMSize.TotalRAM# GTE #MINALLOWABLE#>
178 :             <a href="GraphicsCard.cfm?level=#url.level#&type=#url.type#&name=#url.name#"> Move To Next Component</a>

The code that it applys to is:

<cfoutput>      

<cfquery name="CurrentRAMSize" datasource="database">
SELECT SUM (TBLRAM.RAMSIZE) AS TotalRAM
FROM TBLRAM
WHERE TBLRAM.RAMID in (SELECT TBLSELECTEDCOMPONENTS.COMPONENTID
                  FROM TBLSELECTEDCOMPONENTS
                  WHERE TBLSELECTEDCOMPONENTS.USERID = #session.name#)
</cfquery>
                        
<cfif #session.type# eq 'Business'>
      <cfset MINALLOWABLE = 256>
<cfelseif #session.type# eq 'Gaming'>
      <cfset MINALLOWABLE = 512>
<cfelseif #session.type# eq 'Home'>
      <cfset MINALLOWABLE = 256>
<cfelse>
    <cfset MINALLOWABLE = 0>
</cfif>

#CurrentRAMSize.TotalRAM#

<cfif isDefined(#CurrentRAMSize.TotalRAM#)>
      <cfif #CurrentRAMSize.TotalRAM# GTE #MINALLOWABLE#>
            <a href="GraphicsCard.cfm?level=#url.level#&type=#url.type#&name=#url.name#"> Move To Next Component</a>
      <cfelse>
            More Ram Required
      </cfif>
<cfelse>
      More Ram Required
</cfif>
</cfoutput>
                        
[+][-]03/09/06 01:05 PM, ID: 16148931Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: ColdFusion Application Server
Tags: index, out, string, 0, range
Sign Up Now!
Solution Provided By: trailblazzyr55
Participating Experts: 2
Solution Grade: A
 
[+][-]03/09/06 12:18 PM, ID: 16148314Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/09/06 12:41 PM, ID: 16148598Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/09/06 12:45 PM, ID: 16148641Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/09/06 12:56 PM, ID: 16148798Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/09/06 02:13 PM, ID: 16149720Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/09/06 02:34 PM, ID: 16149966Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/09/06 02:35 PM, ID: 16149975Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/09/06 02:53 PM, ID: 16150161Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/09/06 03:04 PM, ID: 16150268Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/09/06 03:05 PM, ID: 16150280Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/10/06 07:07 AM, ID: 16154883Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/10/06 07:24 AM, ID: 16155032Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/10/06 07:40 AM, ID: 16155192Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/10/06 09:04 AM, ID: 16156391Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/10/06 09:18 AM, ID: 16156517Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92