Thanks, nothanks Tony. That is not what I want.
You're opening a new Page. I want to select in an existing Page a new Ticker. I
will give you the code in JScript that's called from AB. The underneath code does what I want to do. But I want it in
AFL. Without the JScript part. And of course a lot simpler than all these lines
of code ... I am sure it can be done in AFL. But how ?
Kind regards, Ton.
EnableScript("JScript"); <%
function SelectTicker(Ticker)
{ AB = new ActiveXObject("Broker.Application");
AB.ActiveDocument.Name = Ticker;
return "OK"; } %>
GetSym = ParamTrigger("Get SP500 ","GET"); if (GetSym) {
script = GetScriptObject();
script.SelectTicker("^GSPC");
}
----- Original Message -----
Sent: Sunday, May 03, 2009 2:05 PM
Subject: Re: [amibroker] Erasing All
List
This should get you started:
GetSym = "WOR";
if
(StrLen(GetSym)) { AB =
CreateObject("Broker.Application"); ABD = AB.Documents;
ABD.Open(GetSym ); }
On Sun, May 3, 2009 at 3:59 AM, Ton Sieverding <ton.sieverding@scarlet.be>
wrote:
Thanks Dingo. I still do not understand why
this should not work in AFL :
GetSym =
ParamTrigger("Get SP500 ","GET"); if (GetSym) {
AB.createobject("Broker.Application");
AB.Documents.Open("^GSPC"); }
Regards, Ton.
----- Original Message -----
Sent: Friday, May 01, 2009 5:10
PM
Subject: Re: [amibroker] Erasing All
List
oAB.Documents.Open(CStr(Ticker)) is the way to
do it in _vbscript_. The Cstr is needed in vb.
d
On Fri, May 1, 2009 at 3:25 AM, Ton Sieverding
<ton.sieverding@scarlet.be> wrote:
Hi Dingo,
I know how to remove, add and even how to
get a tickerlist using the Stocks object in the AmiBroker object
model ...
oStocks.Remove( Ticker );
oStocks.Add( Ticker );
But I do not know how to select a Ticker in
the database. Should be something like ...
oStocks.Select( Ticker );
... wrong. Method does not exist. Any idea
?
Regards, Ton.
----- Original Message -----
Sent: Thursday, April 30, 2009
5:44 PM
Subject: Re: [amibroker] Erasing
All List
__._,_.___
**** 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/
__,_._,___
|