I had the same problem. What i did was a replace of all minus signs by an
underscore.
R.
Johan Coens
-----Original Message-----
From: Stephen Moretti [mailto:[EMAIL PROTECTED]]
Sent: maandag 31 juli 2000 13:14
To: Cf-Talk@Houseoffusion. Com
Subject: A knotty evaluate problem....
Morning all....
I have a little problem.....
I have a form that has a number of items for which you can change the
quantity for each item. The Quantity field is called Quantity_ and then has
the item ID appended to this.
In the update page I know the item ids for all the items on the previous
page, so I loop through them and build up the variable and check to see
whether the content has changed.
No problem there....
<cfset noqvar=evaluate(DE("OrderQuantity_#ID#")) >
<cfset neworderqty = evaluate(noqvar)>
The problem come when the seconf cfset above is executed. ID is a UUID
generated by CreateUUID(). When CF tried to evalute it I get an error. The
minus signs in the ID make CF try to subtract bits of the form field name
from other bits eg.
Form variable : OrderQuantity_B7935872-11DD-4FCB-887089EEAE37432C
CF tries to subtract 11DD from OrderQuantity_B7935872 and gets its knickers
in a twist when it sees the DD on the end of the number.
Does any one have any ideas how I can stop it from doing this and get the
contents of the variable?
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.