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

RE: [amibroker] Re: OLE / Import



PureBytes Links

Trading Reference Links

Hi Dennis

The following syntax would have worked as well. (Without the brackets)

Dim Amibroker As Object
Set Amibroker = CreateObject("Broker.Application")

Amibroker.Import 0, "c:\ausgabe.txt", "standart.format"
Amibroker.RefreshAll

Set Amibroker = Nothing


William






-----Original Message-----
From: metzdennis [mailto:Dennis.Metz@x...]
Sent: Thursday 11 July 2002 9:04 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: OLE / Import


Thank you Thomasz,

everything is working fine now.

Best regards,
Dennis

--- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> wrote:
> Hello,
> 
> You need to specify a full path to the file imported (because 
otherwise
> AmiBroker looks for its own current directory which is C:\Program 
Files\AmiBroker by default)
> and you have to copy "standart.format" file into Formats subfolder 
of AMiBroker directory,
> or supply a full path to the format file in the Import function 
call.
> 
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message ----- 
> From: "metzdennis" <Dennis.Metz@xxxx>
> To: <amibroker@xxxx>
> Sent: Thursday, July 11, 2002 5:06 PM
> Subject: [amibroker] Re: OLE / Import
> 
> 
> > Hello Thomasz,
> > 
> > thanks for your fast reply.
> > Now Visual Basic accepts the command.
> > 
> > Still, no data is imported into Amibroker. 
> > There is no error message at all, neither in Visual Basic nor in 
> > Amibroker.
> > 
> > Best regards,
> > Dennis
> > --- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> wrote:
> > > Hello,
> > > 
> > > This is because Import is a FUNCTION not a procedure.
> > > Visual Basic is stupid enough that does not allow to call 
function 
> > and discard the result.
> > > So you have to use:
> > > 
> > > Set AmiBroker = CreateObject("Broker.Application")
> > > result = AmiBroker.Import(0,"ausgabe.txt","standart.format")
> > > 
> > > 
> > > 
> > > Best regards,
> > > Tomasz Janeczko
> > > amibroker.com
> > > ----- Original Message ----- 
> > > From: "metzdennis" <Dennis.Metz@xxxx>
> > > To: <amibroker@xxxx>
> > > Sent: Thursday, July 11, 2002 4:25 PM
> > > Subject: [amibroker] Re: OLE / Import
> > > 
> > > 
> > > > Hello Thomasz,
> > > > 
> > > > I'm using Visual Basic.
> > > > The command
> > > > 
> > > > Set AmiBroker = CreateObject("Broker.Application")
> > > > AmiBroker.Import(0,"ausgabe.txt","standart.format")
> > > > 
> > > > does not work. Visual Basic does not accept the secound line. 
It 
> > says 
> > > > something like "expecting = "...
> > > > 
> > > > Best regards,
> > > > Dennis
> > > > 
> > > > --- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> 
wrote:
> > > > > Hello,
> > > > > 
> > > > > http://www.amibroker.com/newsletter/02-2001.html
> > > > > gives you a full-featured example of using Import function.
> > > > > 
> > > > > Best regards,
> > > > > Tomasz Janeczko
> > > > > amibroker.com
> > > > > ----- Original Message ----- 
> > > > > From: "metzdennis" <Dennis.Metz@xxxx>
> > > > > To: <amibroker@xxxx>
> > > > > Sent: Wednesday, July 10, 2002 5:02 PM
> > > > > Subject: [amibroker] OLE / Import
> > > > > 
> > > > > 
> > > > > > Hallo
> > > > > > 
> > > > > > I'm currently looking at the Automation Object Model.
> > > > > > 
> > > > > > Unfortunatley I was not able to find anything (despite 
the 
> > short 
> > > > > > description in the help-file) about the "import" command.
> > > > > > 
> > > > > > The help file only states: 
> > > > > > 
> > > > > > Import(Type : number, FileName : string, [optional] 
> > DefFileName : 
> > > > > > string ) : long 
> > > > > > 
> > > > > > Anyone knows how to use it?
> > > > > > 
> > > > > > Best regards,
> > > > > > Dennis
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > 
> > > > > > Your use of Yahoo! Groups is subject to 
> > > > http://docs.yahoo.com/info/terms/ 
> > > > > > 
> > > > > > 
> > > > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > Your use of Yahoo! Groups is subject to 
> > http://docs.yahoo.com/info/terms/ 
> > > > 
> > > > 
> > > >
> > 
> > 
> > 
> > 
> > 
> > Your use of Yahoo! Groups is subject to 
http://docs.yahoo.com/info/terms/ 
> > 
> > 
> >





Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/