[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Re: help with string manipulation code



PureBytes Links

Trading Reference Links

Please include the prior posts in your msg so I don't have to search thru
posts trying to figure out where I was.

As to the code (I haven't tried this):

2008Location = StrFind( Name(), "2008" );
If (2008Location > 0)
{
    If (strMid(Name(), 2008Location + 1, 1) < " ")
    { 
       CategoryAddSymbol( "", categoryWatchlist, 289 ); 
       Filter = 1;
    } 
}

AddTextColumn( Name(),"name");
 

> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx 
> [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of jeremy7827110028
> Sent: Friday, March 07, 2008 12:22 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: help with string manipulation code
> 
> Hi D,
> 
> Thanks for the reply.  I am not sure I understand what you are 
> suggesting.  I can get the code below to find AA but when I 
> try "2008" it doesn't work.  Is this the approach you were suggesting?
> 
> 
> 
> if( StrFind( Name(), "AA" ) ) 
> { 
>    CategoryAddSymbol( "", categoryWatchlist, 289 ); 
> } 
> 
> 
> x = StrFind(Name(),"2008");
> 
> Filter = StrFind( Name(), "AA" ) ;
> 
> 
> 
>    AddTextColumn( Name(),"name");
> 
> Jeremy
> 
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
>  
> Yahoo! Groups Links
> 
> 
> 
> 



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/