but like adam (I think) said, use a trim() around it, since it looks like there could be a space after the chars and before the nums.
tw tony weeg uncertified advanced cold fusion developer tony at navtrak dot net www.navtrak.net office 410.548.2337 fax 410.860.2337 -----Original Message----- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 06, 2003 12:18 PM To: CF-Talk Subject: Re: Braindead stripping question Ya I'd use right() <cfset MyVar = "SG1001"> <cfset VarLen = Len(MyVar)> <cfset CharsToStrip = VarLen-2> <cfset FinalVar = Right(MyVar,CharsToStrip)> HTH Cheers Bryan Stevenson B.Comm. VP & Director of E-Commerce Development Electric Edge Systems Group Inc. t. 250.920.8830 e. [EMAIL PROTECTED] --------------------------------------------------------- Macromedia Associate Partner www.macromedia.com --------------------------------------------------------- Vancouver Island ColdFusion Users Group Founder & Director www.cfug-vancouverisland.com ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, August 06, 2003 8:59 AM Subject: Braindead stripping question > Must....get....more....coffee... > > I have a variable passed, ie SG101 or SG 1004 > > I have to strip the first two characters as those are always constant. > So I > can't use right() since the numerical portions after the reliable two > characters may fluctuate in terms of number of characters...what is > best function to accomplish? > > TIA. > > Regards, > > Eric J. Hoffman > DataStream Connexion > www.datastreamconnexion.com > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

