Thank you, Panos and Barry, for the replies.

The chart does change now if I remove it and reinsert it again. I am
thinking if there's a more convenient way to refresh the chart since
it is so troublesome to do it manually..

I am sure some OLE magic could have solve this problem... but all the
following failed:

1)
AB = new ActiveXObject("Broker.Application"); 
AB.RefreshAll();

2)
AB = new ActiveXObject("Broker.Application"); 
Doc = AB.ActiveDocument;
Doc.Activate();
AB.RefreshAll();

3)
AB = new ActiveXObject("Broker.Application"); 
Win = AB.ActiveWindow;
Win.Activate();
AB.RefreshAll();

4)
AB = new ActiveXObject("Broker.Application"); 
AB.LoadLayout("C:\\Database\\Layouts\\Default.awl")


I am not sure which OLE function I should call... I wonder if anyone
has any ideas?




--- In [email protected], "Barry Scarborough" <[EMAIL PROTECTED]>
wrote:
>
> If you mean the charts did not reflect changes made outside it is 
> because AB did not know you changed anything. In AB when you make a 
> change and save it or apply it, AB updates your charts with the 
> changes you made. If you use another editor then you will have to 
> close the current chart and insert the new version. 
> 
> Go to the chart you changed, edit it and then do an insert linked. 
> All the charts in AB will now be updated. I quit editing outside AB a 
> long time ago for this very reason. You can do a lot of editing and 
> the syntax may be wrong and you won't know that until your formula 
> fails. 
> 
> Barry
> 
> --- In [email protected], "sonyfanaticsss" 
> <sonyfanaticsss@> wrote:
> >
> > Hi,
> > 
> > I'm a beginner to Amibroker so please bear with me... 
> > 
> > In Amibroker's default editor, if I made some changes to the codes,
> > the results are shown in Amibroker right away. 
> > 
> > But if I change the code in Ultraedit and save the file, Amibroker
> > does not respond to my changes.
> > 
> > I tried running this .js:
> > 
> > var AB = new ActiveXObject("Broker.Application"); 
> > AB.RefreshAll();
> > 
> > 
> > and it doesn't work. Still nothing happens in Amibroker. 
> > 
> > I wonder how I can solve this problem?
> >
>


Reply via email to