Junkone
1/9/2008 12:04:00 AM
On Jan 8, 5:33 pm, Masaki Suketa <masaki.suk...@nifty.ne.jp> wrote:
> Hello,
>
> Junkone wrote:
>
> > Nope. it does not work
> > b=analysis.Filter(0, "market") #= 3 # use nasdaq only
> > b=3
> > It does not change anything at all.
> > However if i ran a similar code in vbscript, it does the magic.
> >
> > set application = CreateObject("Broker.Application")
> > application.visible=1
> > set analysis=application.analysis()
> > analysis.Filter( 0, "market" ) = 3
> >
> > so something is wrong with the way ruby does automation.
> >
>
> Ruby does not support the following syntax, so Win32OLE
> does not support.
> > analysis.Filter( 0, "market" ) = 3
>
> Instead, does the following script work?
>
> analysis.setproperty('Filter', 0, "market", 3)
>
> Regards,
> Masaki Suketa
bingo. analysis.setproperty('Filter', 0, "market", 4) works
beautifylly. masaki is one smart. how did you figure it out. i am
wondering.