Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > it.comp.lang.javascript > #8101 > unrolled thread
| Started by | |
|---|---|
| First post | |
| Last post | |
| Articles | 1 — 0 participants |
Back to article view | Back to it.comp.lang.javascript
#8101
| From | |
|---|---|
| Date | |
| Subject | #8101 |
| Message-ID | <mn.bc337e0b04f9c814.142705@Kiss-the-Sphinx> |
avrei un problema riguardo uno script:
--------------
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";
}
-------------
Praticamente io avrei un database (in un software) di tanti simboli e lo
script sopra da in modo di cambiare gli ultimi caratteri[A DESTRA] di un dato
testo.
Se volessi invece cambiarlo e fare in modo di cambiare i >>PRIMI<< (a
sinistra) come potrei modificare lo script? Ho provato ma non sono una cima
in programmazione e mi servirebbe un aiuto se possibile.
Grazie
Lino
Back to top | Article view | it.comp.lang.javascript
csiph-web