PureBytes Links
Trading Reference Links
|
Hello,
date() function returns single string of currently
selected date
(not array). As ValueWhen is supposed to work with
arrays it
can not handle date().I would suggest using
datenum() function or
3 calls to year(), month() and day() functions
respectively.
These functions work well with
ValueWhen();
ValueWhen( cond1, datenum() );
or
ValueWhen( cond1, year() );
ValueWhen( cond1, month() );
ValueWhen( cond1, day()
);
Best regards,Tomasz Janeczko===============AmiBroker - the
comprehensive share manager.<A
href="">http://www.amibroker.com
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Dimitris
Tsokakis
To: <A title=amibroker@xxxxxxxxxxxxx
href="">amibroker@xxxxxxxxxxxxxxx
Sent: Saturday, September 22, 2001
4:34 PM
Subject: [amibroker] valuewhen
Does valuewhen operates with string expressions
?
I tried in an Exploration
valuewhen(cond1,date()) or
valuewhen(cond1,name())
without result(bad arg).
Alternative:writeif(cond1,string1,string2) worked
well,
although did not give exactly what was
asked.
Any idea to get the date when cond1 was true as
result
in an Exploration column ?
Dimitris TsokakisYour
use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
|