PureBytes Links
Trading Reference Links
|
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@xxxxxxxxxxxxxxx>
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/
>
>
>
|