Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #6997
| From | Richard Heathfield <rjh@cpax.org.uk> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: A problem about programming |
| Date | 2016-11-23 19:36 +0000 |
| Organization | Fix this later |
| Message-ID | <o14r13$29k$1@dont-email.me> (permalink) |
| References | <mn.bc7d7e0bef53dd75.142705@Kiss-the-Sphinx> |
On 23/11/16 18:09, Lino wrote:
> 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 ?
I know this will probably sound like rather a strange question, but what
language is that code written in? Your chances of getting a good answer
will be greatly increased if we know what language you're using.
--
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within
Back to comp.programming | Previous | Next — Previous in thread | 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