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 This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. http://www.cfhosting.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

