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


Groups > comp.programming > #7001

Re: A problem about programming

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

Show all headers | View raw


Richard Heathfield ha pensato forte :


> Here are four ways to do it --- I should warn you that I haven't tested any 
> of them:

> 1) JavaScript:
>    st.Ticker = concat("-TC", Ticker.substring(3, Length - 3);

> 2) VBScript:
>    st.Ticker = "-TC" & Mid(Ticker, 4, Length + 1)

> 3) 
>    st.Ticker = "-TC" + Ticker.substring(3, Length - 3);

> 4) 
>    st.Ticker = "-TC" + Ticker.substring(3, Length);


this (below) work partially and it have 2 problem:

        st.Ticker= "IT_"+StrRight(ticker,Lenght+3);



1. change only 1 symbol a time (I think it's a "FOR Cycle" problem)

2.

Example: I have symbols [below] -----> and  result

TO:A       TC-T:A  wrong
TO:DE      TC-:DE  wrong
TO:ASD     TC-ASD  OK OK OK OK
TO:AXMA    TC-XMA  Wrong
TO:ERJTT   TC-JTT  wrong


I want to change "only" the "TO:" or the part of string that I want to change 
leaving the rest the same as originally printed.


Hope I'an clear
Thanks for help.

Lino.

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