Hello,

This is shortcut form that allows to display text in the commentary or 
interpretation window
(any expression that evaluates to string on global level when run in commentary 
or interpretation
will display that string).
A longer (a more proper form is):


printf("Before function call");
printf("VariableA = " + VariableA );
printf("VariableB = " + VariableB );


Best regards,
Tomasz Janeczko
amibroker.com

On 2010-07-12 18:24, bistrader wrote:
> The following is from AmiBroker documentation concerning procedures and 
> functions.  I understand the local and global variables but do not understand 
> the lines that are on quotes.  For example, what do the following 3 lines 
> produce and where is it displayed?  At first, I thought that the first line 
> would print "Before function call" someplace but could not find it anywhere.  
> I also thought the second line would produce "VariableA = 5", but again could 
> not find anywhere where it was displayed.
>
> "Before function call";
> "VariableA = " + VariableA;
> "VariableB = " + VariableB;
>
> Here is a copy and paste from documentation:
> VariableA = 5; // implict global variable
>
> function Test()
> {
>     local VariableA;  // explicit local variable with the same identifier as 
> global
>     global VariableB; // explicit global variable not defined earlier
>                       // may be used to return more than one value from the 
> function
>
>     VariableA = 99;
>     VariableB = 333;
> }
>
> VariableB = 1; // global variable
>
> "Before function call";
> "VariableA = " + VariableA;
> "VariableB = " + VariableB;
>
> Test();
>
> "After function call";
> "VariableA = " + VariableA + " (not affected by function call )";
> "VariableB = " + VariableB + " (affected by the function call )";
>
>
>
> ------------------------------------
>
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> Yahoo! Groups Links
>
>
>
>

Reply via email to