RE: [ cf-dev ] Finding out if a string contains particular charac ters

2004-09-23 Thread James Buckingham
Thanks again Duncan. Thought that would be an easy one ;) Does anyone know any good website where I can find out information like this? In comparison to some of the other questions in here it seems quite basic. I've been looking at www.cfhub.com but unless you know what you're looking for it's

Re: [ cf-dev ] Finding out if a string contains particular charac ters

2004-09-23 Thread Stephen Moretti (cfmaster)
James Buckingham wrote: Thanks again Duncan. Thought that would be an easy one ;) Does anyone know any good website where I can find out information like this? In comparison to some of the other questions in here it seems quite basic. I've been looking at www.cfhub.com but unless you know what

RE: [ cf-dev ] Finding out if a string contains particular charac ters

2004-09-23 Thread Aidan Whitehall
We did start sorting it out into a wiki and updating it, but like so many things we all got way too busy and it fell by the way side. Was wondering about that the other day... is it still online anywhere or did you ditch it? -- Aidan Whitehall [EMAIL PROTECTED] Macromedia ColdFusion

[ cf-dev ] The basics of Verity

2004-09-23 Thread Paul Swingewood
Hi all, I have never used Verity and woiuld like to play around with it a little. Can anyone recommend an idiots gude to verity with CFMX. Regards - Paul -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive:

RE: [ cf-dev ] The basics of Verity

2004-09-23 Thread Robertson-Ravo, Neil (RX)
The Working with Verity book which ships with CF? -Original Message- From: Paul Swingewood [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 10:51 To: [EMAIL PROTECTED] Subject: [ cf-dev ] The basics of Verity Hi all, I have never used Verity and woiuld like to play around with it a

RE: [ cf-dev ] Finding out if a string contains particular charac ters

2004-09-23 Thread Duncan Jack
James Picking up on your point about basic syntax and FAQs, I found the following extremely useful when starting out with CF: 1. Developing ColdFusion MX Applications - a chapter a day for a month(ish) works fine. 2. CFML Reference - tag by tag, function by function. Complete with thorough

RE: [ cf-dev ] The basics of Verity

2004-09-23 Thread Paul Swingewood
I have the CFMX Reference CFMX developinf applications I didn't get any other books (and I had to send away for those ...) Regards - Paul From: Robertson-Ravo, Neil (RX) [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] The basics of Verity Date:

RE: [ cf-dev ] The basics of Verity

2004-09-23 Thread Andy Allan
http://livedocs.macromedia.com/coldfusion/6/Working_with_Verity_Tools/contents.htm This is obviously in the CFMX6.0 area, but I don't think Verity changed between 6.0 and 6.1 Andy Quoting Paul Swingewood [EMAIL PROTECTED]: I have the CFMX Reference CFMX developinf applications I didn't get

Re: [ cf-dev ] Finding out if a string contains particular charac ters

2004-09-23 Thread Stephen Moretti (cfmaster)
Aidan Whitehall wrote: We did start sorting it out into a wiki and updating it, but like so many things we all got way too busy and it fell by the way side. Was wondering about that the other day... is it still online anywhere or did you ditch it? Ummm dunno actually - need to dig

Re: [ cf-dev ] Finding out if a string contains particular charac ters

2004-09-23 Thread duncan . cumming
http://faq.cfmxdeveloper.co.uk/ Stephen

Re: [ cf-dev ] IP and whois

2004-09-23 Thread duncan . cumming
you have two options. Either save it in your website folder, or save it in the C:\Cfusion\Custom Tags\ folder. Depending probably on if you think you'll use this in more than one website? see also: http://tutorial18.easycfm.com/

[ cf-dev ] Postcode database

2004-09-23 Thread Russ Michaels \(Snake\)
Anyone know where to buy a postcode lookup database for address completion. I know you can get it direct form royal mail but am also looking for some other sources to get the best price. Russ -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/

Re: [ cf-dev ] Postcode database

2004-09-23 Thread Stephen Moretti (cfmaster)
Russ Michaels (Snake) wrote: Anyone know where to buy a postcode lookup database for address completion. I know you can get it direct form royal mail but am also looking for some other sources to get the best price. They sell it to everyone else, so I'd be surprised if you get a much better

[ cf-dev ] number of items in a list

2004-09-23 Thread duncan . cumming
cfset list=a,b,c,i cfoutput #ListLen(list)# /cfoutput = 4. i.e. it's not counting the empty elements in the list. how'd you get round that, parse through the list looking for commas? -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Robertson-Ravo, Neil (RX)
This is a known issue sin CF, you will need to add padders in a list with empty values. See here.. http://www.cflib.org/udf.cfm?ID=507 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 12:49 To: [EMAIL PROTECTED] Subject: [ cf-dev ] number

Re: [ cf-dev ] number of items in a list

2004-09-23 Thread Paul Johnston
If you want an array... use an array. Lists are useless when you should be using an array. To get round it, count the number of commas and + 1. Either that, or loop over the string and create a real array (listtoarray won't help here either)... Paul On Thu, 2004-09-23 at 12:48, [EMAIL

RE: [ cf-dev ] Postcode database

2004-09-23 Thread Tim Blair
Anyone know where to buy a postcode lookup database for address completion. We've done a fair bit of postcode-based stuff, and have always used Postcode Anywhere - http://www.postcodeanywhere.co.uk/ They've always been more than willing to help and their support staff are efficient and

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Tim Blair
Either that, or loop over the string and create a real array Or be more convuluted: cfset list=a,b,c,i cfset itemCount = arraylen(list.split(,)) cfoutput#itemCount#/cfoutput -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/

Re: [ cf-dev ] number of items in a list

2004-09-23 Thread duncan . cumming
who said anything about arrays? Paul Johnston

Re: [ cf-dev ] number of items in a list

2004-09-23 Thread Paul Johnston
The point being that if you want an array, use an array. The whole point of an array is that you want to know that a certain value is at a certain position. Therefore, knowing the length of an array is important. With a list, the length is unimportant. It's just a variable to hold a bunch of

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Tim Blair
list.split(,) am I missing something, where did this come from? That's a since MX thing -- because all basic types in CF are treated (at least initially) as Java strings, you can use functions from the java.lang.String class [1], which includes a function to tokenise a string into an array

Re: [ cf-dev ] number of items in a list

2004-09-23 Thread Salvatore Fusto
hello, why not ListToArray(list,,)? sa - Original Message - From: Tim Blair [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 23, 2004 4:54 PM Subject: RE: [ cf-dev ] number of items in a list list.split(,) am I missing something, where did this come from? That's a

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Adrian Lynch
It's not often CF suprises me, but this is one of them! -Original Message- From: Tim Blair [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 15:55 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] number of items in a list list.split(,) am I missing something, where did this come from?

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Aidan Whitehall
list.split(,) am I missing something, where did this come from? That's a since MX thing -- because all basic types in CF are treated (at least initially) as Java strings, you can use functions from the java.lang.String class [1], which includes a function to tokenise a string into an

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Tim Blair
hello, why not ListToArray(list,,)? Because, as already mentioned, Duncan wanted to include empty elements in the count. Using listToArray() excludes the empty elements, whereas split() includes them and gives the correct result. Tim. --

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Tim Blair
Do you know to what extent this new functionality is supported? I'd hate to start using Java methods directly on CF variables (I assume that's what you're doing) only to find that in some future version the code fails to run because of some modification MM make. Well, of course this

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Adrian Lynch
You've gone and done it now, worm, can, open... ... does a CF query map to a built in Java dataype or is there a Query class? Got any more exmaples? Got any code to help explore this new gold mine? The service factory was fun but this looks like it might be even better! (If anyone's reading

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Adrian Lynch
http://www.cfdev.com/mx/undocumentation/ Not read it yet, but the introduction says it all -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 16:54 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] number of items in a list You've gone and done it

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Tim Blair
You've gone and done it now, worm, can, open... LOL, I know what you mean... :) ... does a CF query map to a built in Java dataype or is there a Query class? It's a non-standard (i.e. created for CF) class called coldfusion.sql.QueryTable. Got any more exmaples? Got any code to help

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Tim Blair
I wrote the attached script a while ago Doh, no attachments... Try this instead (it's a .cfm file, just rename it): http://tech.badpen.com/dev/objectInspector.txt Tim. -- --- Badpen Tech - CF and web-tech: http://tech.badpen.com/

RE: [ cf-dev ] number of items in a list

2004-09-23 Thread Tim Blair
http://www.cfdev.com/mx/undocumentation/ Not read it yet, but the introduction says it all Heh, my script basically does exactly what their java class does, but without the extra class required. -- --- Badpen Tech - CF and web-tech:

[ cf-dev ] MX, CFPop, and QofQ

2004-09-23 Thread Jolly Green Giant
I'm on MX and have run a CFPop command and am successfully checking the mailbox because I can dump the query var and see the message stuff. But then I want to do a query on that cfpop query object to sort the results. This query worked fine in CF 5... cfquery dbtype=query name=sortedheaders

Re: [ cf-dev ] MX, CFPop, and QofQ

2004-09-23 Thread Nick de Voil
Unfortunately to, from and date are reserved words - they hadn't thought of QoQ when they designed CFPOP of course. http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/using_36.htm Nick - Original Message - From: Jolly Green Giant [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

RE: [ cf-dev ] MX, CFPop, and QofQ

2004-09-23 Thread Adrian Lynch
TO might be reserved, alias it and see if that helps. Ade -Original Message- From: Jolly Green Giant [mailto:[EMAIL PROTECTED] Sent: 23 September 2004 18:09 To: [EMAIL PROTECTED] Subject: [ cf-dev ] MX, CFPop, and QofQ I'm on MX and have run a CFPop command and am successfully checking

Re: [ cf-dev ] MX, CFPop, and QofQ

2004-09-23 Thread Jolly Green Giant
That was it. I've never had to alias column names before. I forgot about that. And the MX error didn't give me any clue to look in that direction. :-/ Unfortunately to, from and date are reserved words - they hadn't thought of QoQ when they designed CFPOP of course.

Re: [ cf-dev ] MX, CFPop, and QofQ

2004-09-23 Thread Tom Smith
you could try putting "to" in square brackets [to] and alias it so you can use it: [to] as toField or something! - Original Message - From: Jolly Green Giant To: [EMAIL PROTECTED] Sent: Thursday, September 23, 2004 6:08 PM Subject: [ cf-dev ] MX, CFPop, and