ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 20th, 2005, 12:05 PM
mparker1113 mparker1113 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 254 mparker1113 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 29 m 48 sec
Reputation Power: 5
Collecting Substrings

Hi,

I am using CF 4.1xxx. Database = Microsoft Access

I have form variables for which I am attempting to identify similar records within database (ostensibly to prevent record duplication).

So, I would like to chop up the string for which I am going to search for similar occurences so that I can identify already inputted abbreviations (example : input is edward, find like '%ed%)

How do I get substrings of strings using CF?

I want substring(start,end,string) , and am not finding a way to do this.

Help appreciated muchly,

Mike

Reply With Quote
  #2  
Old June 20th, 2005, 12:13 PM
Ebot's Avatar
Ebot Ebot is offline
Meatball Surgeon
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Elbow deep in code
Posts: 1,190 Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)Ebot User rank is Major General (70000 - 90000 Reputation Level)  Folding Points: 27471 Folding Title: Starter FolderFolding Points: 27471 Folding Title: Starter Folder
Time spent in forums: 1 Week 4 Days 11 h 27 m 49 sec
Reputation Power: 755
Don't know if the function is in CF 4, but for version 6 you would use the mid function.

mid(string, start, count)

Reply With Quote
  #3  
Old June 20th, 2005, 12:37 PM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,651 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 12 h 21 m 47 sec
Reputation Power: 53
It's all in the docs (this is 5.0 but none of the string manipulation functions have changed that I am aware of).
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #4  
Old June 20th, 2005, 12:47 PM
mparker1113 mparker1113 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 254 mparker1113 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 29 m 48 sec
Reputation Power: 5
The thing about the docs is that while I am getting familiar, it is sometimes difficulst to know what function I need by its name (I had looked but didn't pick up on Mid)..

Thanks alot !

-Mike

Quote:
Originally Posted by kiteless
It's all in the docs (this is 5.0 but none of the string manipulation functions have changed that I am aware of).

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Collecting Substrings


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway