RE: cfscript assistance

2013-11-15 Thread Stephens, Larry V

Ah - I missed part of Matt's response and Dave said the same thing. It was the 
() that was throwing the error. Should have seen that...

Thanks.

-Original Message-
From: Matt Quackenbush [mailto:quackfu...@gmail.com] 


> if GetB.bcode[x] NEQ xcampus {

if ( GetB.bcode[x] != xcampus )
{
// do something
}


~|
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:357078
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: cfscript assistance

2013-11-15 Thread Stephens, Larry V

Thanks. See below

 

-Original Message-
From: Matt Quackenbush [mailto:quackfu...@gmail.com] 
Sent: Friday, November 15, 2013 9:45 AM
To: cf-talk
Subject: Re: cfscript assistance


On Fri, Nov 15, 2013 at 9:35 AM, Stephens, Larry V  wrote:

>
>
> 
> for ( x=1; x<=GetB.Recordcount; x=x+1) {
> if GetB.bcode[x] NEQ xcampus {
>
> This throws an invalid construct error:
> ColdFusion was looking at the following text:
>
> GetB.bcode
>
> ? What am I missing?
>
>

if ( GetB.bcode[x] != xcampus )
{
// do something
}

I wondered about != vs NEQ but it throws the same error. At 
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=CFScript_02.html
 the example uses NEQ inside cfscript

~|
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:357077
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfscript assistance

2013-11-15 Thread Dave Watts

>> 
>> for ( x=1; x<=GetB.Recordcount; x=x+1) {
>> if GetB.bcode[x] NEQ xcampus {
>>
>> This throws an invalid construct error:
>> ColdFusion was looking at the following text:
>> GetB.bcode
>> ? What am I missing?
>
> if ( GetB.bcode[x] != xcampus )
> {
> // do something
> }

And in an attempt to reduce future problems, it's worth pointing out
that CFSCRIPT is basically JavaScript expression syntax with
ColdFusion operators and functions.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

~|
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:357076
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfscript assistance

2013-11-15 Thread Matt Quackenbush

On Fri, Nov 15, 2013 at 9:35 AM, Stephens, Larry V  wrote:

>
>
> 
> for ( x=1; x<=GetB.Recordcount; x=x+1) {
> if GetB.bcode[x] NEQ xcampus {
>
> This throws an invalid construct error:
> ColdFusion was looking at the following text:
>
> GetB.bcode
>
> ? What am I missing?
>
>

if ( GetB.bcode[x] != xcampus )
{
// do something
}


~|
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:357075
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfscript assistance

2013-11-15 Thread Russ Michaels

try these tools, you may have more luck
http://carehart.org/cf411/#excel



On Fri, Nov 15, 2013 at 2:35 PM, Stephens, Larry V  wrote:

>
> I've stayed away from cfscript but now I'm looking at it in conjunction
> with writing Excel spreadsheets.
>
> I looked at https://learn.adobe.com/wiki/display/coldfusionen/cfscriptand then
> https://learn.adobe.com/wiki/display/coldfusionen/Extending+ColdFusion+Pages+with+CFML+Scriptingbecause
>  I thought perhaps CF10 is different than CF8. No joy on these pages.
>
> Google took me to
> http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=CFScript_03.html#1160935and
>  there I see:
>
> 
> // Loop through the qGetEmails RecordSet
> for (x = 1; x <= qGetEmails.RecordCount; x=x+1) {
>   This_id = qGetEmails.Emails_id[x];
>
> I don't see anything specific to an if statement here. Here's my snippet
> (where GetB.bcode is from query GetB and xcampus is set above here):
>
> 
> for ( x=1; x<=GetB.Recordcount; x=x+1) {
> if GetB.bcode[x] NEQ xcampus {
>
> This throws an invalid construct error:
> ColdFusion was looking at the following text:
>
> GetB.bcode
>
> ? What am I missing?
>
>
>
>
> 

~|
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:357073
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm