Re: [flexcoders] ActionScript "POS" function

2005-08-12 Thread Devis
Thank's work, Devis Dimitrios Gianninas ha scritto: > I think what you are looking for is: txt.indexOf("IA") > > You can read more here: > http://livedocs.macromedia.com/flex/15/flex_docs_en/1706.htm > > *Dimitrios "Jimmy" Gianninas* > *RIA Developer* > *Optimal Payments Inc.* > > > --

RE: [flexcoders] ActionScript "POS" function

2005-08-12 Thread Dimitrios Gianninas
I think what you are looking for is: txt.indexOf("IA")   You can read more here:  http://livedocs.macromedia.com/flex/15/flex_docs_en/1706.htm   Dimitrios "Jimmy" Gianninas RIA Developer Optimal Payments Inc.   From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [flexcoders] ActionScript pos function

2005-04-04 Thread Manish Jethani
On Apr 4, 2005 4:40 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > exists in AS a function that retrive if a subString exists. > For example > > var txt :String="CIAO MONDO"; > > //this is not ActionScript >0 SubString exists > if(txt.pos('MONDO')>0) > return true; > else > return false;

RE: [flexcoders] ActionScript pos function

2005-04-04 Thread Abdul Qabiz
Hi Devis, There are string methods to make your life easier :), Try indexOf(..), lastIndexOf(..) methods of String class.. var txt:String = "CIAO MONDO"; If(txt.indexOf("MONDO")!=-1) { //substring exists return true; }else { return false; } String.indexOf(..)@lived