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.*
>
>
> --
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
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;
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
4 matches
Mail list logo