Apparently I was the one doing the converting. Looking at the code in the email,
I notice a minus sign in the yStart cfet statement.

Carry on. nothing to see here....


ps. I noticed it myself at the same time you did Josh.

> I have a cfparam tag with a default value of -213, a negative integer. I'm
> having issues with it automatically converting to a positive integer. Here's
> the test code:
> ----------------
> <cfparam name="FORM.yCo" default="-213">
> 
> <cfset yStart = -FORM.yCo>
> <cfset yEnd = FORM.yCo>
> 
> Form: <cfdump var="#FORM#">
> Variables: <cfdump var="#VARIABLES#">
> ----------------
> 
> When I run that code I get the following:
> Form:
>     YCO -213  
> 
> Variables:
>     YEND -213  
>     YSTART 213  
> 
> So why does one variable display the integer as positive and another as
> negative? It's totally messing up my code and I can't figure it out. I'm to
> the
> point where I just want to find a function that will "flip" the values to
> their
> opposites, but I'd rather find out WHY it's happening to begin with!! I'm
> running CF7 at home, MX on my remote server. As an FYI I also get the same
> results using a cfset on FORM.yCo.
> 
> You can see the code in action here:
> http://www.commadelimited.com/travian/test.cfm
> 
> Any help would be appreciated.
> 
>  
> Andy Matthews
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242246
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to