From: Junkone Date: 2008-01-09T09:05:01+09:00 Subject: Re: prob only with ruby On Jan 8, 5:33 pm, Masaki Suketa 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.