PureBytes Links
Trading Reference Links
|
Hi Tomasz!
Great! Thank you very much. What a nice Idea to use a function
returning a number!
I absolutely agree with saving on redundand "Write()".
How about eliminating WriteVal () as well? A numeric variable, or the
current element of an array variable can be automaticaly converted to
a string if it appears in context of a string operation. WriteVal()
will be still required if a number/vector is the first item to be
printed. (This is JAVA concept of automatical call of toString()).
Examples:
" myvalue = " + myvalue; // the same as " myvalue = " + writeval
(myvalue);
but
WriteVal (myvalue) + " is myvalue" ; // Writeval is required here.
Thanks,
Dima.
--- In amibroker@xxxx, "Tomasz Janeczko" <tj@xxxx> wrote:
> Hi Dima,
>
> Yes, there is a way. Simply assign a value inside the function that
gets
> string but returns number (and discard the return value)
> as show in the example below:
>
> assigwithprint = "Test 1";
> strlen( assignwithoutprint = "Test 2" );
>
> Q: why texts are written automatically?
> A: to save you the time writing "Write() or PRINT" in every line of
the commentary,
> and because assignments in AFL work similar to C++ (they have a
value,
> so constructs like a = b = c = d = 1 work) the string is
displayed as it would be without the assignment.
>
> ISWITCH - postponed to 3.7.
>
> Best regards,
> Tomasz Janeczko
> ===============
> AmiBroker - the comprehensive share manager.
> http://www.amibroker.com
>
>
> ----- Original Message -----
> From: "Dima Rasnitsyn" <rasnitsyn@xxxx>
> To: <amibroker@xxxx>
> Sent: Sunday, May 06, 2001 9:10 PM
> Subject: [amibroker] String operation
>
>
> > Hello Tomasz!
> >
> > Sorry for the stupid question: Is it possible to assign a string
without
> > printing it out in Guru Commentary window?
> >
> > In other words, I want to be able to do the following:
> > LastTradeDay = "5/28/01";
> > Without having "5/18/01" printed at the moment of execution of
the above
> > lines.
> >
> > BTW, do you have any particular plans to implement 'ISWITCH
(...)'? I'm just
> > wondering, no request to rise priority of this minor
enhancement...
> >
> > Also, it'd be nice to have a substring () in addition to the
strlen ().
> >
> > Thank you,
> > Dima.
> >
> >
> > -----Original Message-----
> > From: Tomasz Janeczko [mailto:tj@x...]
> > Sent: Saturday, May 05, 2001 10:06 AM
> > To: AmiBroker Mailing List
> > Subject: [amibroker] A new issue of the newsletter
> >
> > Hello,
> >
> > A new issue (10/2001) of the newsletter is available at:
> > http://www.amibroker.com/newsletter/10-2001.html
> >
> >
> > Best regards,
> > Tomasz Janeczko
> > ===============
> > AmiBroker - the comprehensive share manager.
> > http://www.amibroker.com
> >
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
> >
> > Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
> >
> >
> >
|