Thanks! I realized what I did afterwards. Just coping and pasting code isn't the best way to do things always. I re-coded it and it works great thanks!
Rick -----Original Message----- From: Phillip Vector [mailto:vec...@mostdeadlygame.com] Sent: Sunday, October 17, 2010 6:06 PM To: cf-talk Subject: Re: cfif contains 1. No need for # inside the cfif. :) 2. You shouldn't need to trim it if you use a contains. 3. You set CPU to a single value of AMD. Therefore, cpu.description doesn't exist anymore. On Sun, Oct 17, 2010 at 2:03 PM, Rick Sanders <c...@webenergy.ca> wrote: > > How can I do a cfif contains? > > Error I am getting: > > You have attempted to dereference a scalar variable of type class > java.lang.String as a structure with members. > > > The error occurred in E:\Websites\nscomputers\systembuilder2.cfm: line 6 > > 4 : <cfif #Trim(cpu.description)# contains "AMD"> > 5 : <cfset cpu = "AMD"> > 6 : <cfif #Trim(cpu.description)# contains "AM2"> > > > I hope someone can shed some light on this. thanks! > > Rick > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:338260 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm