listLast(num, '-') On 5/5/07, Mike Little <[EMAIL PROTECTED]> wrote: > hi guys, > > i have a merchant reference number that is passed from a payment gateway, in > the format of... > > 'P' & LSDateFormat(now(), "yyyymmdd") & '-' & txn_id > > so it could be... > > P20070506-1, P20070506-2 or P20070506-59 > > what i wish to be able to do is query a database based on the last set of > numbers eg. 1, 2 or 59 in the examples above. > > a little lost as to how i can achieve this? > > any help would really be appreciated. > mike > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion?sdid=RVJR Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:277098 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

