Cold Fusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingCold Fusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 9th, 2003, 08:16 AM
sweetmoon sweetmoon is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 11 sweetmoon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question String Concat

How do you concat two strings in cold fusion? is there any function that could do this job?

Iam pulling the hours and minutes and storing them in 2 different variables but before storing them in database i need to concat them together so it makes some sense.


Thanks in advance.

Reply With Quote
  #2  
Old May 9th, 2003, 04:40 PM
ChiMex ChiMex is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2002
Location: Colorado
Posts: 22 ChiMex User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Try this.

Code:

<cfset newString = string1 & string2>

Last edited by ChiMex : May 9th, 2003 at 04:52 PM.

Reply With Quote
  #3  
Old May 12th, 2003, 08:06 AM
sweetmoon sweetmoon is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 11 sweetmoon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thumbs up

Thank You Chimex! It did Work!

Reply With Quote
  #4  
Old May 12th, 2003, 08:14 AM
sweetmoon sweetmoon is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 11 sweetmoon User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation concat :

Iam trying to concat 2 strings and also i need to insert : [double colon] in between both of them so it looks like time format.

For Example: 1:21 minutes

so i need to concat (1:21) like this.

I tried using the ampersand (&) in between like

<cfset totime = hrtime & : & mintime>

It did not work and gave an error message like this:

(This message is usually caused by a problem in the expressions structure.)

Please Help

Reply With Quote
  #5  
Old March 3rd, 2011, 02:18 PM
travisheeter travisheeter is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 1 travisheeter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 9 sec
Reputation Power: 0
You need to have quotes around any strings.
<cfset totime = hrtime & ":" & mintime>

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingCold Fusion Development > String Concat


Developer Shed Advertisers and Affiliates


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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap