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
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
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
This tag does not seem to work like I would expect. Can anyone shed some light? Very
little in the docs about this. I quote the only reference...
CONTAINS determines whether the value on the left is contained in the value on the
right. Returns true if it is.
cfif REWORK CONTAINS
Sorry,
Figured it out...
cfif REWORK LOOP CONTAINS Client.TravType
is the correct syntax...
sheepish_grin
Brian
This tag does not seem to work like I would expect. Can anyone shed some light? Very
little in the docs about this. I quote the only reference...
Subject: cfif contains #variable# failure?
This tag does not seem to work like I would expect. Can anyone shed
some
light? Very little in the docs about this. I quote the only
reference...
CONTAINS determines whether the value on the left is contained in the
value
on the right. Returns true
, January 15, 2002 12:59 PM
To: CF-Talk
Subject: cfif contains #variable# failure?
This tag does not seem to work like I would expect. Can anyone shed
some
light? Very little in the docs about this. I quote the only
reference...
CONTAINS determines whether the value on the left
you're looking for the word 'Rework' in
Client.TravType, which seems to be what you're doing).
Dirk
-Original Message-
From: Brian Scandale [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, January 15, 2002 12:59 PM
To: CF-Talk
Subject: cfif contains #variable# failure?
This tag does
8 matches
Mail list logo