Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #6996
| From | Lino <lino@net.com> |
|---|---|
| Newsgroups | comp.programming |
| Subject | A problem about programming |
| Date | 2016-11-23 19:09 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <mn.bc7d7e0bef53dd75.142705@Kiss-the-Sphinx> (permalink) |
Script Below
--------------
AB = CreateObject("Broker.Application");
sts = AB.Stocks();
Qty = sts.Count;
for( i = Qty - 1; i >= 0; i = i - 1 )
{
st = sts.Item( i );
Ticker = st.Ticker;
printf("changing " + ticker + "\n" );
Length = StrLen(Ticker );
if( StrFind(ticker, ".TO") )
st.Ticker = StrLeft( ticker, Length-3)+"-TC";
}
-------------
I have a database with many symbols and the script [above] change latest
(RIGHT) 3 letter of any symbol.
Now, how can I change the script above to modify the "FIRST THREE" of any
Symbol ?
Thanks
Lino
Back to comp.programming | Previous | Next — Next in thread | Find similar | Unroll thread
A problem about programming Lino <lino@net.com> - 2016-11-23 19:09 +0100
Re: A problem about programming Richard Heathfield <rjh@cpax.org.uk> - 2016-11-23 19:36 +0000
Re: A problem about programming Lino <lino@net.com> - 2016-11-23 21:04 +0100
Re: A problem about programming Lino <lino@net.com> - 2016-11-23 23:38 +0100
Re: A problem about programming Richard Heathfield <rjh@cpax.org.uk> - 2016-11-23 21:01 +0000
Re: A problem about programming Richard Heathfield <rjh@cpax.org.uk> - 2016-11-23 21:02 +0000
Re: A problem about programming Lino <lino@net.com> - 2016-11-23 22:38 +0100
Re: A problem about programming Lino <lino@net.com> - 2016-11-23 22:40 +0100
Re: A problem about programming Richard Heathfield <rjh@cpax.org.uk> - 2016-11-24 09:33 +0000
Re: A problem about programming Lino <lino@net.com> - 2016-11-24 11:18 +0100
Re: A problem about programming Lino <lino@net.com> - 2016-11-24 12:49 +0100
Re: A problem about programming Richard Heathfield <rjh@cpax.org.uk> - 2016-11-24 12:08 +0000
Re: A problem about programming Lino <lino@net.com> - 2016-11-24 14:08 +0100
Re: A problem about programming BartC <bc@freeuk.com> - 2016-11-24 17:14 +0000
Re: A problem about programming Richard Heathfield <rjh@cpax.org.uk> - 2016-11-24 17:18 +0000
csiph-web