Rick:

It's generally easier to get an answer if you are as descriptive as possible 
about your issue (if an error, what error...if not, what was unexpected). 
Makes it much easier to troubleshoot and offer up suggestions than just 
being shown a line of code.

While there was nothing wrong with your code in and of itself (personal 
preference and 'best practices' regarding scoping aside), there could have 
been other issues (like 'photos' not being created as a variable, the 
variable not being numeric, etc). Cuts down on the guess work to know what 
the issue is :)

On Apr 4, 2005 12:43 PM, Rick Faircloth <[EMAIL PROTECTED]> wrote:
> 
> Thanks for the replies, everyone...
> 
> I've ensured the value / variable exists by preceding it with
> 
> <CFPARAM Name="Photos" Default="0">
> 
> As to scoping it with variables., as in "variables.photos", why
> is that important?
> 
> Charlie...why do I ask? Well, I'm trying to increment the value,
> and so far, it's not working...something must be wrong in my other
> code somewhere...I didn't think there was anything wrong with it
> "in and of itself", but wanted to be sure...
> 
> I'll tinker with the code some more and see what I can dig up...
> 
> Rick
> 
> 
> -----Original Message-----
> From: Paul Hastings [mailto:[EMAIL PROTECTED]
> Sent: Monday, April 04, 2005 12:32 PM
> To: CF-Talk
> Subject: Re: Anything wrong with this statement?
> 
> Rick Faircloth wrote:
> > Is there anything wrong with this statement in an of itself?
> >
> > <CFSET Photos=Photos+1>
> 
> wrong? it assumes a value for Photos already exists?
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201390
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