Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #6998

Re: A problem about programming

From Lino <lino@net.com>
Newsgroups comp.programming
Subject Re: A problem about programming
Date 2016-11-23 21:04 +0100
Organization Aioe.org NNTP Server
Message-ID <mn.bcf07e0b72b99e35.142705@Kiss-the-Sphinx> (permalink)
References <mn.bc7d7e0bef53dd75.142705@Kiss-the-Sphinx> <o14r13$29k$1@dont-email.me>

Show all headers | View raw


Richard Heathfield ha spiegato il 23/11/2016 :
> 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.

Jscript (but VBscript use the the same syntax)
Thanks

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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