Pull data from a large field?

This is a discussion on Pull data from a large field? within the Cold Fusion forums in Application Servers & Tools category; I have a variable which contins: MEISTER 56767 CB5-325-3-M-84-55 IGE 60DEG 6.5MMX14/M4.5 (G-213 MOD); FSP100:034250006500001; FSP200:RSRV-189 I need to get the FSP100:034250006500001 It's always prefixed with FSP but is in a different place each time. How would I go about getting that out of my variable?...

Go Back   Application Development Forum > Application Servers & Tools > Cold Fusion

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-05-2008, 10:21 AM
Danny Bonnadouche
Guest
 
Default Pull data from a large field?

I have a variable which contins: MEISTER 56767 CB5-325-3-M-84-55 IGE 60DEG
6.5MMX14/M4.5 (G-213 MOD); FSP100:034250006500001; FSP200:RSRV-189

I need to get the FSP100:034250006500001

It's always prefixed with FSP but is in a different place each time. How
would I go about getting that out of my variable?

Reply With Quote
  #2  
Old 09-05-2008, 02:01 PM
SafariTECH
Guest
 
Default Re: Pull data from a large field?

Assuming you only want the FSP100 and not the FSP200...

Try "ListContains" along with "FSP100:" as the criteria and semi-colons as the
delimiter

It will tell you what position in the list it is found, then use ListGetAt to
pull that list record





Reply With Quote
  #3  
Old 09-05-2008, 02:24 PM
-==cfSearching==-
Guest
 
Default Re: Pull data from a large field?

Danny Bonnadouche wrote:
> How would I go about getting that out of my variable?


Is this also your question here ?

http://www.adobe.com/cfusion/webforu...id=1&catid=7&t
hreadid=1390530&enterthread=y

Reply With Quote
  #4  
Old 09-06-2008, 03:02 AM
BKBK
Guest
 
Default Re: Pull data from a large field?

There is an answer in your other post. Davidsimms has effectively wriiten the code for you. Don't double-post.



Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:56 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.