yes

--
Marlon Moyer, Sr. Internet Developer
American Contractors Insurance Group
phone: 972.687.9445
fax: 972.687.0607
mailto:[EMAIL PROTECTED]
www.acig.com

> -----Original Message-----
> From: Gonzo Rock [mailto:[EMAIL PROTECTED]
> Sent: Saturday, May 08, 2004 3:20 AM
> To: CF-Talk
> Subject: RE: _javascript_ string evaluation
>
> So....  like this then?
>
> if dataString[i].indexOf("A") > -1
> {
>       A Exists
> }
> else
> {
>       A does NOT exist
> }
>
>
> At 08:27 PM 5/7/04, you wrote:
>
> >dataString[i].indexOf("A")
> >
> >this will return -1 if not found, otherwise the index in the string
> >where "A" occurs, starting with 0 as the first position
> >
> >--
> >Marlon Moyer, Sr. Internet Developer
> >American Contractors Insurance Group
> >phone: 972.687.9445
> >fax: 972.687.0607
> >mailto:[EMAIL PROTECTED]
> >www.acig.com
> >
> >
> > > -----Original Message-----
> > > From: Gonzo Rock [mailto:[EMAIL PROTECTED]
> > > Sent: Friday, May 07, 2004 9:23 PM
> > > To: CF-Talk
> > > Subject: _javascript_ string evaluation
> > >
> > > Hi all,
> > >
> > > I'm looking for the correct _javascript_ syntax that tests for the
> > > occurrence
> > > of a single character in a string...
> > >
> > > example:
> > >
> > > if (dataString[i]   'contains'   "A"
> > > {
> > >     do something here ;
> > > }
> > >
> > > obviously 'contains' is not the correct syntax ;-)
> > >
> > > Thanx
> > > Gonz
> > >
> > >
> > >
> >
> >----------
> >[<http://www.houseoffusion.com/lists.cfm/link=t:4>Todays Threads]
> >[<http://www.houseoffusion.com/lists.cfm/link=i:4:162631>This
Message]
> >[<http://www.houseoffusion.com/lists.cfm/link=s:4>Subscription]
>
>[<http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=664.584.4>
Fa
> st
> >  Unsubscribe] [<http://www.houseoffusion.com/signin/>User Settings]
> >
> >
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to