[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: question about manipulating individual array elements



PureBytes Links

Trading Reference Links

thanks Tomasz

--- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> Hello,
> 
> You can implement it either using looping or using IIF
> 
> sc1 = IIF( sc1 == 1 AND sc2 == 1, 0, sc1 );
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "ed2000nl" <pablito@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, October 03, 2003 12:49 PM
> Subject: [amibroker] Re: question about manipulating individual 
array elements
> 
> 
> > hi,
> > 
> > to clarify my question somewhat: I know how to access individual 
> > array elements in a loop. Point is I do not want to do that. I 
want 
> > to use the power of AFL.
> > 
> > Per example: in an other language I used to use (IDL - 
Interactive 
> > Data Langue) I would do a thing like I want to do now as follows:
> > 
> > sc1(WHERE(sc1 EQ 1 AND sc2 EQ 1)) = 0
> > 
> > in words: at the index position inside the array sc1 where sc1 is 
1 
> > and also sc2 = 1, I want to put a 0.
> > 
> > maybe this is more clear.
> > 
> > Is it possible to manipulate indexes is such a way in AFL? Or 
will 
> > this become possible in the future? Or is there a way around this 
in 
> > AFL?
> > 
> > thanks in advance, Ed
> > 
> > 
> > 
> > 
> > > OK now the question ........ in some cases both sc1 and sc2 
apply. 
> > > This means that I have a 1 at the same index position in the 
arrays 
> > > sc1 and sc2. Is it possible to replace this "1" at this index 
> > > position inside sc1 and leave it in sc2? In other words can I 
> > > manipulate individual array elements?
> > 
> > 
> > 
> > 
> > 
> > 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at: 
http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > 
> > Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/ 
> > 
> > 
> >


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/