Amibroker 5.8 AFL errors

#1
Hi,
In amibroker 5.8 , i am not able to execute old AFLs. It gives syntax error:

GfxGradientRect , GfxTextOut these are giving errors.

How to run these without changing code ?
If code changes required, then how to change new code?

Thanks.
 

trash

Well-Known Member
#2
Hi,
In amibroker 5.8 , i am not able to execute old AFLs. It gives syntax error:

GfxGradientRect , GfxTextOut these are giving errors.

How to run these without changing code ?
If code changes required, then how to change new code?

Thanks.
Nonsense!

It works the same as before. Then your whole code is wrong. You neither mention the exact error nor do you provide a reproducible code.

Code:
Version( 5.80 );

Title = "";
SetChartOptions( 0, chartShowDates );

Plot( C, "Price", colorDefault, styleCandle );
GraphGridZOrder = 0;

pxcw = Status( "pxchartwidth" );
pxch = Status( "pxchartheight" );

GfxSetZOrder( -1 );
GfxSetBkMode( 1 );
GfxSelectFont( "Arial", 100, weight = 700, italic = False, underlined = False, orientation = 0 );
GfxSetTextAlign( 6 | 24 ); //center and baseline alignment 
GfxSetTextColor( ColorRed );
GfxTextOut( "Hello World!", pxcw / 2, pxch / 2 ); 

GfxSetZOrder( -2 );
GfxGradientRect( 0, 0, pxcw + 5, pxch + 5, colorLightYellow, colorBlack );
 
#3
My code was running correctly in old version.
I tried below "1-line code", and its giving 'syntax error'.

GfxGradientRect( 1, 1, 2, 2, colorGreen, colorRed ) ;

May be, some plugin is missing. All GFX* functions are giving error.


Thanks.
 

trash

Well-Known Member
#4
My code was running correctly in old version.
I tried below "1-line code", and its giving 'syntax error'.

GfxGradientRect( 1, 1, 2, 2, colorGreen, colorRed ) ;

May be, some plugin is missing. All GFX* functions are giving error.


Thanks.
Re-read the second post if your are not able to understand what is written there. There has nothing changed in the way those and other GFX functions work! Ask AmiBroker and they will confirm. So also your pointless one liner works fine here. If you get error then there is some other influence like as you mentioned yourself a missing plugin not being in plugins folder of AB 5.80. Or you use a cracked AB version.
 

Similar threads