ListLast(string, "*") eq "END"

> -----Original Message-----
> From: Don Vawter [mailto:[EMAIL PROTECTED]]
> Sent: 17 December 2001 01:10
> To: CF-Talk
> Subject: Re: String ends
> 
> 
> len(st) GE 4 and right(st,4) EQ "*END"
> 
> (you need to check length because right(st,4) with give an 
> error if length
> is less than 4
> 
> ----- Original Message -----
> From: "Parker, Kevin" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Sunday, December 16, 2001 6:00 PM
> Subject: String ends
> 
> 
> > Can someone help a little here please (I left my copy of 
> Forta at home
> :-( I
> > am checking a string returned from a third party payment 
> gateway to see
> how
> > the gateway processed the payment request. There are a 
> number of possible
> > outcomes I check for (see one example in the code snippet 
> below) but I
> also
> > need to check that I received the entire string. In all 
> cases the gateway
> > returns strings which end with END and the delimiter in the 
> list is * so
> if
> > I get the complete string back I should see the string ending *END
> >
> > I am checking what the string contains to see how to 
> process it my end but
> > what is the best way to check that each string returned 
> finishes *END
> >
> > <cfif (returnResult CONTAINS "OK") AND (returnResult 
> CONTAINS "true")>
> >
> >
> >
> >
> > **********
> >
> > Kevin Parker
> > Web Services Manager
> > WorkCover Corporation
> >
> > [EMAIL PROTECTED]
> > www.workcover.com
> >
> > p: 08 82332548
> > f: 08 82332000
> > m: 0418 806 166
> >
> > **********
> >
> >
> >
> > 
> **************************************************************
> **********
> > This e-mail is intended for the use of the addressee only. It may
> > contain information that is protected by legislated confidentiality
> > and/or is legally privileged. If you are not the intended 
> recipient you
> > are prohibited from disseminating, distributing or copying 
> this e-mail.
> >
> > Any opinion expressed in this e-mail may not necessarily be 
> that of the
> > WorkCover Corporation of South Australia. Although precautions have
> > been taken, the sender cannot warrant that this e-mail or any files
> > transmitted with it are free of viruses or any other defect.
> >
> > If you have received this e-mail in error, please notify the sender
> > immediately by return e-mail and destroy the original e-mail and any
> > copies.
> > 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists


Reply via email to