Sam,


This usually happens when you are trying to add a number to a variable that
isn't set.


Your options seem to be: 1) <cfset id = 0> first if this is actually adding
numbers or 2) <cfset ID = ID & "1"> if you are concatinating the strings.


Steve

-----Original Message-----
From: Sam Fisher [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 3:32 PM
To: CF-Talk
Subject: value "" cannot convert to number

Hi Everyone,
      Can someone tell be why I get a string convert error.  I have tried
setting up ID to Val(ID) and even IncrementValue(Val(ID)), but all it ever
returns is either 0 or 1, respectively.  Apparently ID is not getting
converted.  "I feel like I'm taking crazy pills!"  What is wrong with
converting a string to a number, especially when the string is just a
concatenation of numbers?

      Many thanks,
      Sam

      The value "" cannot be converted to a number
      155 : <CFOUTPUT>#ID#</CFOUTPUT>
      156 : <CFSET ID=ID + 1>
  _____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to