RE: quotation marks and their rules...

2002-07-29 Thread Tony Weeg

yes, status_code was set to 0 prior to the beginning of
the loop ;)

..tony

Tony Weeg
Senior Web Developer
Information System Design
Navtrak, Inc.
Fleet Management Solutions
www.navtrak.net
410.548.2337 

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 28, 2002 10:50 PM
To: CF-Talk
Subject: RE: quotation marks and their rules...


 cfloop condition=isDefined(status_code) and Len(#status_code#)
 
 why doesnt this make sense?

How would CF ever exit from that loop? Are you setting status_code equal
to an empty string within the loop?

In any case, try this:

cfloop condition=IsDefined('status_code') and Len(status_code) ...

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: quotation marks and their rules...

2002-07-29 Thread Philip Arnold - ASP

 cfloop condition=isDefined(status_code) and Len(#status_code#)

 why doesnt this make sense?
 it keeps buggin on me ARGHHH!

 yes, status_code was set to 0 prior to the beginning of
 the loop ;)

If status_code is being set to 0 before the loop, then the
isDefined() isn't needed

Also, Len(status_code) will only break out of the loop if status_code is
set to 

When do you want it to stop looping?

Philip Arnold
Technical Director
Certified ColdFusion Developer
ASP Multimedia Limited
Switchboard: +44 (0)20 8680 8099
Fax: +44 (0)20 8686 7911

www.aspmedia.co.uk
www.aspevents.net

An ISO9001 registered company.

**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
**


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: quotation marks and their rules...

2002-07-29 Thread Patti G. L. Hall

In that case len(status_code) will always return 1, cause status_code=0 has
a length of 1.

The condition I you may be trying for is:

Isdefined(status_code) and status_code

This will trigger the false you were looking for since when status_code
evaluates to 0, coldfusion will recognize that as the boolean for false.

-Patti

Tony Weeg wrote:

 yes, status_code was set to 0 prior to the beginning of
 the loop ;)
 
 ..tony
 
 Tony Weeg
 Senior Web Developer
 Information System Design
 Navtrak, Inc.
 Fleet Management Solutions
 www.navtrak.net
 410.548.2337 
 
 -Original Message-
 From: Dave Watts [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, July 28, 2002 10:50 PM
 To: CF-Talk
 Subject: RE: quotation marks and their rules...
 
 
 cfloop condition=isDefined(status_code) and Len(#status_code#)
 
 why doesnt this make sense?
 
 How would CF ever exit from that loop? Are you setting status_code equal
 to an empty string within the loop?
 
 In any case, try this:
 
 cfloop condition=IsDefined('status_code') and Len(status_code) ...
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 voice: (202) 797-5496
 fax: (202) 797-5444
 
 
__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



quotation marks and their rules...

2002-07-28 Thread Tony Weeg

cfloop condition=isDefined(status_code) and Len(#status_code#)

why doesnt this make sense?
it keeps buggin on me ARGHHH!

cheers

..tony

tony weeg
[EMAIL PROTECTED]
www.revolutionwebdesign.com
rEvOlUtIoN wEb DeSiGn
410.334.6331 

__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: quotation marks and their rules...

2002-07-28 Thread Ian Lurie

Try single quotes around 'status_code'...

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 28, 2002 7:32 PM
To: CF-Talk
Subject: quotation marks and their rules...


cfloop condition=isDefined(status_code) and Len(#status_code#)

why doesnt this make sense?
it keeps buggin on me ARGHHH!

cheers

.tony

tony weeg
[EMAIL PROTECTED]
www.revolutionwebdesign.com
rEvOlUtIoN wEb DeSiGn
410.334.6331 


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: quotation marks and their rules...

2002-07-28 Thread Dave Watts

 cfloop condition=isDefined(status_code) and Len(#status_code#)
 
 why doesnt this make sense?

How would CF ever exit from that loop? Are you setting status_code equal to
an empty string within the loop?

In any case, try this:

cfloop condition=IsDefined('status_code') and Len(status_code) ...

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: quotation marks and their rules...

2002-07-28 Thread Boardworks Interactive

You can escape double quotes in CFML simply by using two quotes next to
each other:

cfset myString = This is my string

In other languages, such as JavaScript, this can be done using a
backslash:

var myString =  This is \my\ string;

You should also remove the ##'s from the variable, status_code.  Also
note that you should only need to use ##'s when you are outputting to
the screen, or when you are evaluating a variable in a string.

cfset myVar = World
cfoutput#myVar#/cfoutput
cfset myString = Hello #myVar#!

Enjoy!


SCOTT VAN VLIET
BRD.WRKS INTERACTIVE
T: 714.469.6805
E: [EMAIL PROTECTED]
 

-Original Message-
From: Ian Lurie [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, July 28, 2002 7:36 PM
To: CF-Talk
Subject: RE: quotation marks and their rules...

Try single quotes around 'status_code'...

-Original Message-
From: Tony Weeg [mailto:[EMAIL PROTECTED]]
Sent: Sunday, July 28, 2002 7:32 PM
To: CF-Talk
Subject: quotation marks and their rules...


cfloop condition=isDefined(status_code) and Len(#status_code#)

why doesnt this make sense?
it keeps buggin on me ARGHHH!

cheers

tony

tony weeg
[EMAIL PROTECTED]
www.revolutionwebdesign.com
rEvOlUtIoN wEb DeSiGn
410.334.6331 



__
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists