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

Re: [amibroker] Commentary



PureBytes Links

Trading Reference Links

Hi,

This problem was discussed once on this mailing list, here is
what I wrote then:

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.


Best regards,
Tomasz Janeczko
===============
AmiBroker - the comprehensive share manager.
http://www.amibroker.com

----- Original Message -----
From: <bbouree@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, May 26, 2001 8:37 AM
Subject: [amibroker] Commentary


> Hello,
>
> I'm trying to build one commentary with AFL script
> and need some help to solve the following problem:
>
> In order to clarify the script I am storing some string text in a
> variable like :
>
> txt1=" text to be stored";
>
> in order to reuse it in some formula.
>
> The problem is that the line
>
> txt1= " something";
> get printed in the commentary WITHOUT the order WRITEVAL !
>
> Thanks for your help.
>
> Bernard Bourée
> bbouree@xxxx
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>